summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-05-18 09:00:06 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-05-18 09:00:06 -0700
commit362724af6cf5edf35832ba0dbc7783806a38871e (patch)
treec66f9012eb1ee65b48a663333017ddaaee964886 /Documentation
parentMerge branch 'mh/diff-stat-color' (diff)
parentt3702: fix reliance on SHELL_PATH being '/bin/sh' (diff)
downloadtgif-362724af6cf5edf35832ba0dbc7783806a38871e.tar.xz
Merge branch 'js/add-edit'
* js/add-edit: t3702: fix reliance on SHELL_PATH being '/bin/sh' git-add: introduce --edit (to edit the diff vs. the index)
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-add.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index d938b42289..ab1943c712 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -9,7 +9,7 @@ SYNOPSIS
--------
[verse]
'git add' [-n] [-v] [--force | -f] [--interactive | -i] [--patch | -p]
- [--all | [--update | -u]] [--intent-to-add | -N]
+ [--edit | -e] [--all | [--update | -u]] [--intent-to-add | -N]
[--refresh] [--ignore-errors] [--] <filepattern>...
DESCRIPTION
@@ -76,6 +76,15 @@ OPTIONS
bypassed and the 'patch' subcommand is invoked using each of
the specified filepatterns before exiting.
+-e, \--edit::
+ Open the diff vs. the index in an editor and let the user
+ edit it. After the editor was closed, adjust the hunk headers
+ and apply the patch to the index.
++
+*NOTE*: Obviously, if you change anything else than the first character
+on lines beginning with a space or a minus, the patch will no longer
+apply.
+
-u::
--update::
Update only files that git already knows about, staging modified