Improve --patch option documentation in git-add
Signed-off-by: Jari Aalto <jari.aalto@cante.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jari Aalto committed
Sep 13, 2009 at 09:43 UTC
5f2b1e67ca807239cd3596c1eb943357def1ce17
1 file changed
+8
-3
Documentation/git-add.txt
+8
-3
@@ -72,9 +72,14 @@ OPTIONS
72
73
-p::
74
--patch::
75
- Similar to Interactive mode but the initial command loop is
76
- bypassed and the 'patch' subcommand is invoked using each of
77
- the specified filepatterns before exiting.
75
+ Interactively choose hunks of patch between the index and the
76
+ work tree and add them to the index. This gives the user a chance
77
+ to review the difference before adding modified contents to the
78
+ index.
79
+
80
+ This effectively runs ``add --interactive``, but bypasses the
81
+ initial command menu and directly jumps to `patch` subcommand.
82
+ See ``Interactive mode'' for details.
83
84
-e, \--edit::
85
Open the diff vs. the index in an editor and let the user