]> git.ipfire.org Git - thirdparty/git.git/commit - submodule.h
push: add recurseSubmodules config option
authorMike Crowe <mac@mcrowe.com>
Tue, 17 Nov 2015 11:05:56 +0000 (11:05 +0000)
committerJeff King <peff@peff.net>
Fri, 20 Nov 2015 13:02:07 +0000 (08:02 -0500)
commitb33a15b08131514b593015cb3e719faf9db20208
treea386c39c022d11a41f9107613cccfe05df005d01
parent0c83680e9c047170614fb08ef222ea4f460e514d
push: add recurseSubmodules config option

The --recurse-submodules command line parameter has existed for some
time but it has no config file equivalent.

Following the style of the corresponding parameter for git fetch, let's
invent push.recurseSubmodules to provide a default for this
parameter. This also requires the addition of --recurse-submodules=no to
allow the configuration to be overridden on the command line when
required.

The most straightforward way to implement this appears to be to make
push use code in submodule-config in a similar way to fetch.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Jeff King <peff@peff.net>
Documentation/config.txt
Documentation/git-push.txt
builtin/push.c
submodule-config.c
submodule-config.h
submodule.h
t/t5531-deep-submodule-push.sh