Skip to content

Commit 6086ff6

Browse files
escgitster
authored andcommitted
git-reset.txt: better docs for '--patch'
Describe '-p' as a short form of '--patch' in synopsis. Also include a better explanation of this option and additionally refer the reader to the patch mode description of git-add documentation. Helped-by: Jeff King <[email protected]> Mentored-by: Junio C Hamano <[email protected]> Signed-off-by: Valentin Haenel <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a31538e commit 6086ff6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Documentation/git-reset.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SYNOPSIS
99
--------
1010
[verse]
1111
'git reset' [-q] [<commit>] [--] <paths>...
12-
'git reset' --patch [<commit>] [--] [<paths>...]
12+
'git reset' [--patch|-p] [<commit>] [--] [<paths>...]
1313
'git reset' [--soft | --mixed | --hard | --merge | --keep] [-q] [<commit>]
1414

1515
DESCRIPTION
@@ -39,8 +39,9 @@ working tree in one go.
3939
and <commit> (defaults to HEAD). The chosen hunks are applied
4040
in reverse to the index.
4141
+
42-
This means that `git reset -p` is the opposite of `git add -p` (see
43-
linkgit:git-add[1]).
42+
This means that `git reset -p` is the opposite of `git add -p`, i.e.
43+
you can use it to selectively reset hunks. See the ``Interactive Mode''
44+
section of linkgit:git-add[1] to learn how to operate the `\--patch` mode.
4445

4546
'git reset' [--<mode>] [<commit>]::
4647
This form resets the current branch head to <commit> and

0 commit comments

Comments
 (0)