diff options
author | Mike Crowe <mac@mcrowe.com> | 2015-11-17 11:05:56 +0000 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2015-11-20 08:02:07 -0500 |
commit | b33a15b08131514b593015cb3e719faf9db20208 (patch) | |
tree | a386c39c022d11a41f9107613cccfe05df005d01 /submodule-config.h | |
parent | 0c83680e9c047170614fb08ef222ea4f460e514d (diff) | |
download | git-b33a15b08131514b593015cb3e719faf9db20208.tar.gz |
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>
Diffstat (limited to 'submodule-config.h')
-rw-r--r-- | submodule-config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/submodule-config.h b/submodule-config.h index 9061e4ed38..9bfa65af03 100644 --- a/submodule-config.h +++ b/submodule-config.h @@ -19,6 +19,7 @@ struct submodule { }; int parse_fetch_recurse_submodules_arg(const char *opt, const char *arg); +int parse_push_recurse_submodules_arg(const char *opt, const char *arg); int parse_submodule_config_option(const char *var, const char *value); const struct submodule *submodule_from_name(const unsigned char *commit_sha1, const char *name); |