Skip to content

Commit d03c773

Browse files
phil-blaingitster
authored andcommitted
git-reset.txt: mention 'ORIG_HEAD' in the Description
The fact that 'git reset' writes 'ORIG_HEAD' before changing HEAD is mentioned in an example, but is missing from the 'Description' section. Mention it in the discussion of the "'git reset' [<mode>] [<commit>]" form of the command. Signed-off-by: Philippe Blain <[email protected]> Acked-by: Phillip Wood <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e29678b commit d03c773

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/git-reset.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ section of linkgit:git-add[1] to learn how to operate the `--patch` mode.
4949
'git reset' [<mode>] [<commit>]::
5050
This form resets the current branch head to `<commit>` and
5151
possibly updates the index (resetting it to the tree of `<commit>`) and
52-
the working tree depending on `<mode>`. If `<mode>` is omitted,
52+
the working tree depending on `<mode>`. Before the operation, `ORIG_HEAD`
53+
is set to the tip of the current branch. If `<mode>` is omitted,
5354
defaults to `--mixed`. The `<mode>` must be one of the following:
5455
+
5556
--

0 commit comments

Comments
 (0)