[PATCH v2 2/5] git-reset.txt: mention 'ORIG_HEAD' in the Description
- From
Philippe Blain via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Jan 10, 2023, 13:15 UTC
- Message-ID
- <f25c71fd4c31b5c08974b275b3ab23b6c8048fce.1673356522.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.1456.v2.git.1673356521.gitgitgadget@gmail.com>
From: Philippe Blain <levraiphilippeblain@gmail.com>
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 <levraiphilippeblain@gmail.com> --- Documentation/git-reset.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt index 01cb4c9b9c5..79ad5643eed 100644 --- a/Documentation/git-reset.txt +++ b/Documentation/git-reset.txt @@ -49,7 +49,8 @@ section of linkgit:git-add[1] to learn how to operate the `--patch` mode. 'git reset' [<mode>] [<commit>]:: This form resets the current branch head to `<commit>` and possibly updates the index (resetting it to the tree of `<commit>`) and - the working tree depending on `<mode>`. If `<mode>` is omitted, + the working tree depending on `<mode>`. Before the operation, `ORIG_HEAD` + is set to the tip of the current branch. If `<mode>` is omitted, defaults to `--mixed`. The `<mode>` must be one of the following: + --
-- gitgitgadget