]> git.ipfire.org Git - thirdparty/git.git/commit
reset: replace '--quiet' with '--no-refresh' in performance advice
authorVictoria Dye <vdye@github.com>
Tue, 15 Mar 2022 01:49:40 +0000 (01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Mar 2022 01:51:56 +0000 (18:51 -0700)
commit9396251b371b9475b60461ddb27bd22282c86d79
tree617875953a7084a10646f040174473a40fd2de29
parentfd56fba97f26bf668749207efd6a45aee2e2f57c
reset: replace '--quiet' with '--no-refresh' in performance advice

Replace references to '--quiet' with '--no-refresh' in the advice on how to
skip refreshing the index. When the advice was introduced, '--quiet' was the
only way to avoid the expensive 'refresh_index(...)' at the end of a mixed
reset. After introducing '--no-refresh', however, '--quiet' became only a
fallback option for determining refresh behavior, overridden by
'--[no-]refresh' or 'reset.refresh' if either is set. To ensure users are
advised to use the most reliable option for avoiding 'refresh_index(...)',
replace recommendation of '--quiet' with '--[no-]refresh'.

Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/advice.txt
advice.c
advice.h
builtin/reset.c