From 6c656c3fe4ba13cdf03ed85c059690653fd376cb Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Mon, 19 Dec 2016 10:25:32 -0800 Subject: submodules: add RECURSE_SUBMODULES_ONLY value Add the `RECURSE_SUBMODULES_ONLY` enum value to submodule.h. This enum value will be used in a later patch to push to indicate that only submodules should be pushed, while the superproject should remain unpushed. Signed-off-by: Brandon Williams Signed-off-by: Junio C Hamano --- submodule-config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'submodule-config.c') diff --git a/submodule-config.c b/submodule-config.c index 098085be69..33eb62d31a 100644 --- a/submodule-config.c +++ b/submodule-config.c @@ -251,6 +251,8 @@ static int parse_push_recurse(const char *opt, const char *arg, return RECURSE_SUBMODULES_ON_DEMAND; else if (!strcmp(arg, "check")) return RECURSE_SUBMODULES_CHECK; + else if (!strcmp(arg, "only")) + return RECURSE_SUBMODULES_ONLY; else if (die_on_error) die("bad %s argument: %s", opt, arg); else -- cgit v1.2.1