Skip to content

Commit 5f2b1e6

Browse files
jaaltogitster
authored andcommitted
Improve --patch option documentation in git-add
Signed-off-by: Jari Aalto <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4a452ed commit 5f2b1e6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Documentation/git-add.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,14 @@ OPTIONS
7272

7373
-p::
7474
--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.
7883

7984
-e, \--edit::
8085
Open the diff vs. the index in an editor and let the user

0 commit comments

Comments
 (0)