diff options
author | Stefan Beller <sbeller@google.com> | 2017-03-14 21:46:33 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-16 01:15:54 (GMT) |
commit | cf055e465f6febedb8189407a901042814d6b5d8 (patch) | |
tree | 51febb1e8d1cccc01325c6f9463ad862ac73e569 /submodule.c | |
parent | d601fd09573540287d1e00e3a25ef6311885bb46 (diff) | |
download | git-cf055e465f6febedb8189407a901042814d6b5d8.zip git-cf055e465f6febedb8189407a901042814d6b5d8.tar.gz git-cf055e465f6febedb8189407a901042814d6b5d8.tar.bz2 |
update submodules: add a config option to determine if submodules are updated
In later patches we introduce the options and flag for commands
that modify the working directory, e.g. git-checkout.
Have a central place to store such settings whether we want to update
a submodule.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.c')
-rw-r--r-- | submodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/submodule.c b/submodule.c index 04d1857..591f4a6 100644 --- a/submodule.c +++ b/submodule.c @@ -17,6 +17,7 @@ #include "worktree.h" static int config_fetch_recurse_submodules = RECURSE_SUBMODULES_ON_DEMAND; +static int config_update_recurse_submodules = RECURSE_SUBMODULES_DEFAULT; static int parallel_jobs = 1; static struct string_list changed_submodule_paths = STRING_LIST_INIT_NODUP; static int initialized_fetch_ref_tips; @@ -542,6 +543,11 @@ void set_config_fetch_recurse_submodules(int value) config_fetch_recurse_submodules = value; } +void set_config_update_recurse_submodules(int value) +{ + config_update_recurse_submodules = value; +} + static int has_remote(const char *refname, const struct object_id *oid, int flags, void *cb_data) { |