summaryrefslogtreecommitdiff
path: root/Documentation/git-add.txt
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2009-09-13 06:43:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-09-13 08:36:13 (GMT)
commit5f2b1e67ca807239cd3596c1eb943357def1ce17 (patch)
tree85f587eb565781f3774e95d5be010176c7bc1a2a /Documentation/git-add.txt
parent4a452ede390996b0c5dbb7d36536cb5552c6d9fb (diff)
downloadgit-5f2b1e67ca807239cd3596c1eb943357def1ce17.zip
git-5f2b1e67ca807239cd3596c1eb943357def1ce17.tar.gz
git-5f2b1e67ca807239cd3596c1eb943357def1ce17.tar.bz2
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>
Diffstat (limited to 'Documentation/git-add.txt')
-rw-r--r--Documentation/git-add.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index e67b7e8..45ebf87 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -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