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 <peff@peff.net> Mentored-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Valentin Haenel <valentin.haenel@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Valentin Haenel committed May 5, 2011 at 21:58 UTC 6086ff65dfcf48237bdac6c64a85bef5d34d5b4e
1 file changed +4 -3
Documentation/git-reset.txt
+4 -3
@@ -9,7 +9,7 @@ SYNOPSIS
9 --------
10 [verse]
11 'git reset' [-q] [<commit>] [--] <paths>...
12 -'git reset' --patch [<commit>] [--] [<paths>...]
12 +'git reset' [--patch|-p] [<commit>] [--] [<paths>...]
13 'git reset' [--soft | --mixed | --hard | --merge | --keep] [-q] [<commit>]
14
15 DESCRIPTION
@@ -39,8 +39,9 @@ working tree in one go.
39 and <commit> (defaults to HEAD). The chosen hunks are applied
40 in reverse to the index.
41 +
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.
45
46 'git reset' [--<mode>] [<commit>]::
47 This form resets the current branch head to <commit> and