diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-05-18 09:00:06 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-18 09:00:06 -0700 |
commit | 362724af6cf5edf35832ba0dbc7783806a38871e (patch) | |
tree | c66f9012eb1ee65b48a663333017ddaaee964886 /Documentation/git-add.txt | |
parent | c16cea73451f95954b970d34e1120f87dae052c8 (diff) | |
parent | 7c8224b6a8c16c84938ad7c31cb98e55cb1e8cfd (diff) | |
download | git-362724af6cf5edf35832ba0dbc7783806a38871e.tar.gz git-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/git-add.txt')
-rw-r--r-- | Documentation/git-add.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt index d938b4228..ab1943c71 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 |