summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-01-31 13:14:56 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-01-31 13:14:56 -0800
commit792e22e3fd99f204be11b0ff173f2d991308dca5 (patch)
tree9838bb4c36ef4e1872772c39b5ac4484419de54b /builtin
parentMerge branch 'jk/vreport-sanitize' (diff)
parentpush: add option to push only submodules (diff)
downloadtgif-792e22e3fd99f204be11b0ff173f2d991308dca5.tar.xz
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 'builtin')
-rw-r--r--builtin/push.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/push.c b/builtin/push.c
index 9307ad56a9..5c22e9f2e5 100644
--- a/builtin/push.c
+++ b/builtin/push.c
@@ -568,6 +568,8 @@ int cmd_push(int argc, const char **argv, const char *prefix)
flags |= TRANSPORT_RECURSE_SUBMODULES_CHECK;
else if (recurse_submodules == RECURSE_SUBMODULES_ON_DEMAND)
flags |= TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND;
+ else if (recurse_submodules == RECURSE_SUBMODULES_ONLY)
+ flags |= TRANSPORT_RECURSE_SUBMODULES_ONLY;
if (tags)
add_refspec("refs/tags/*");