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>
This commit is contained in:
Björn Gustavsson
2009-11-09 21:11:06 +01:00
committed by Junio C Hamano
parent 16679e373f
commit 7cc91a2f71
4 changed files with 48 additions and 6 deletions

View File

@ -649,7 +649,8 @@ static void set_option(const char *name, const char *value)
static int get_one_remote_for_fetch(struct remote *remote, void *priv)
{
struct string_list *list = priv;
string_list_append(remote->name, list);
if (!remote->skip_default_update)
string_list_append(remote->name, list);
return 0;
}