]> git.ipfire.org Git - thirdparty/git.git/commit
reset: suppress '--no-refresh' advice if logging is silenced
authorVictoria Dye <vdye@github.com>
Tue, 15 Mar 2022 01:49:41 +0000 (01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Mar 2022 01:51:56 +0000 (18:51 -0700)
commitd492abb0ae4a00c5647189b22f7c130fb364e700
tree9f601a7d2861e7887b5fcca9a75d93b08e394179
parent9396251b371b9475b60461ddb27bd22282c86d79
reset: suppress '--no-refresh' advice if logging is silenced

If using '--quiet' or 'reset.quiet=true', do not print the 'resetnoRefresh'
advice string. For applications that rely on '--quiet' disabling all
non-error logs, the advice message should be suppressed accordingly.

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