Skip to content

Commit

Permalink
Improve --patch option documentation in git-add
Browse files Browse the repository at this point in the history
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jari Aalto authored and Junio C Hamano committed Sep 13, 2009
1 parent 4a452ed commit 5f2b1e6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Documentation/git-add.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,14 @@ OPTIONS

-p::
--patch::
Similar to Interactive mode but the initial command loop is
bypassed and the 'patch' subcommand is invoked using each of
the specified filepatterns before exiting.
Interactively choose hunks of patch between the index and the
work tree and add them to the index. This gives the user a chance
to review the difference before adding modified contents to the
index.

This effectively runs ``add --interactive``, but bypasses the
initial command menu and directly jumps to `patch` subcommand.
See ``Interactive mode'' for details.

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

0 comments on commit 5f2b1e6

Please sign in to comment.