mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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>
This commit is contained in:
parent
4a452ede39
commit
5f2b1e67ca
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue