git-reset.txt: make modes description more consistent
Currently, the structure of the individual mode entries is different
which makes it difficult to grasp the differences between the modes.
Also, the same items are named differently (e.g. <commit>, "the named
commit", "the given commit", "the commit being switched to").
Structure and word all mode entries consistently.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Michael J Gruber15 years agocommitted byJunio C Hamano
In the first and second form, copy entries from <commit> to the index.
In the third form, set the current branch head to <commit>, optionally
In the third form, set the current branch head (HEAD) to <commit>, optionally
modifying index and working tree to match. The <commit> defaults to HEAD
in all forms.
'git reset' [-q] [<commit>] [--] <paths>...::
This form resets the index entries for all <paths> to their
state at the <commit>. (It does not affect the working tree, nor
state at <commit>. (It does not affect the working tree, nor
the current branch.)
+
This means that `git reset <paths>` is the opposite of `git add
@ -43,9 +43,10 @@ This means that `git reset -p` is the opposite of `git add -p` (see
@@ -43,9 +43,10 @@ This means that `git reset -p` is the opposite of `git add -p` (see
linkgit:git-add[1]).
'git reset' [--<mode>] [<commit>]::
This form resets the current branch head to <commit> and then
updates index and working tree according to <mode>, which must
be one of the following:
This form resets the current branch head to <commit> and
possibly updates the index (resetting it to the tree of <commit>) and