]> git.ipfire.org Git - thirdparty/git.git/commit
reset: show --no-refresh in the short-help
authorJunio C Hamano <gitster@pobox.com>
Thu, 24 Mar 2022 17:33:10 +0000 (10:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Mar 2022 20:36:21 +0000 (13:36 -0700)
commit5891c76cd012536a5bb833e512f7262a4b4358c1
tree45463ba789b457ab6513f6cf75ded85731cdd6dd
parent7cff6765fe5c1ce97f4afba9432c8aa5c5f877ba
reset: show --no-refresh in the short-help

In the short help output from "git reset -h", the recently added
"--[no-]refresh" option is shown like so:

        --refresh             skip refreshing the index after reset

which explains what happens when the option is given in the negative
form, i.e. "--no-refresh".  We could rephrase the explanation to
read "refresh the index after reset (default)" to hint that the user
can say "--no-refresh" to override the default, but listing the
"--no-refresh" form in the list of options would be more helpful.

Helped-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Acked-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reset.c