]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Documentation/git-history: document default for "--update-refs="
authorPatrick Steinhardt <ps@pks.im>
Mon, 16 Feb 2026 06:45:48 +0000 (07:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Feb 2026 16:37:51 +0000 (08:37 -0800)
While we document the values that can be passed to the "--update-refs="
option, we don't give the user any hint what the default behaviour is.
Document it.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-history.adoc

index 4dbe665ec4fdd95aae28b01785ffeb679e398cad..cc019de69764d2fbf4e1fcab6ddcd14a09dd0341 100644 (file)
@@ -70,7 +70,7 @@ OPTIONS
        Control which references will be updated by the command, if any. With
        `branches`, all local branches that point to commits which are
        descendants of the original commit will be rewritten. With `head`, only
-       the current `HEAD` reference will be rewritten.
+       the current `HEAD` reference will be rewritten. Defaults to `branches`.
 
 GIT
 ---