Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-02-01 00:14:56 +0300
committerJunio C Hamano <gitster@pobox.com>2017-02-01 00:14:56 +0300
commit792e22e3fd99f204be11b0ff173f2d991308dca5 (patch)
tree9838bb4c36ef4e1872772c39b5ac4484419de54b /submodule-config.c
parentdaf75f2e6bb9f2f723eb0532c08dd6002fb17190 (diff)
parent225e8bf778d21104da10cfb316e0e2898b24e809 (diff)
Merge branch 'bw/push-submodule-only'
"git submodule push" learned "--recurse-submodules=only option to push submodules out without pushing the top-level superproject. * bw/push-submodule-only: push: add option to push only submodules submodules: add RECURSE_SUBMODULES_ONLY value transport: reformat flag #defines to be more readable
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 4bf50f398a..93453909cf 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