maintenance: respect remote.*.skipFetchAll
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 16 Apr 2021 12:49:59 +0000 (12:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Apr 2021 20:36:55 +0000 (13:36 -0700)
commit32f67888d85bd0af30b857a29ca25a55999b6d01
treed0ac80a58292ef6bee2faade6fea392045c44032
parentcfd781ea22e0f334d3c0104e1f34c47327934314
maintenance: respect remote.*.skipFetchAll

If a remote has the skipFetchAll setting enabled, then that remote is
not intended for frequent fetching. It makes sense to not fetch that
data during the 'prefetch' maintenance task. Skip that remote in the
iteration without error. The skip_default_update member is initialized
in remote.c:handle_config() as part of initializing the 'struct remote'.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c
t/t7900-maintenance.sh