summaryrefslogtreecommitdiff
path: root/submodule-config.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2016-12-19 18:25:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-12-20 20:26:34 (GMT)
commit6c656c3fe4ba13cdf03ed85c059690653fd376cb (patch)
tree92d27092205999d2661e981ac6bce78daeea6bec /submodule-config.c
parent14c01bdbe8db0a9c9ee228b5b9b5b816c0a38fbd (diff)
downloadgit-6c656c3fe4ba13cdf03ed85c059690653fd376cb.zip
git-6c656c3fe4ba13cdf03ed85c059690653fd376cb.tar.gz
git-6c656c3fe4ba13cdf03ed85c059690653fd376cb.tar.bz2
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 <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule-config.c')
-rw-r--r--submodule-config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/submodule-config.c b/submodule-config.c
index 098085b..33eb62d 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