diff options
author | Björn Gustavsson <bgustavsson@gmail.com> | 2009-11-09 21:11:06 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-10 01:01:07 -0800 |
commit | 7cc91a2f71c95b4e695549b91c4b629f56887a1a (patch) | |
tree | 0838c6b8f23aaf3095332629ce863a2cdb43e939 /remote.c | |
parent | 16679e373fa85a75c85e6e3b4ae5cd58a89a4114 (diff) | |
download | git-7cc91a2f71c95b4e695549b91c4b629f56887a1a.tar.gz |
Add the configuration option skipFetchAll
Implement the configuration skipFetchAll option to allow
certain remotes to be skipped when doing 'git fetch --all' and
'git remote update'. The existing skipDefaultUpdate variable
is still honored (by 'git fetch --all' and 'git remote update').
(If both are set in the configuration file with different values,
the value of the last occurrence will be used.)
Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.c')
-rw-r--r-- | remote.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -396,7 +396,8 @@ static int handle_config(const char *key, const char *value, void *cb) remote->mirror = git_config_bool(key, value); else if (!strcmp(subkey, ".skipdefaultupdate")) remote->skip_default_update = git_config_bool(key, value); - + else if (!strcmp(subkey, ".skipfetchall")) + remote->skip_default_update = git_config_bool(key, value); else if (!strcmp(subkey, ".url")) { const char *v; if (git_config_string(&v, key, value)) |