diff options
author | Wincent Colaiuta <win@wincent.com> | 2007-11-25 14:15:42 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-25 11:37:55 -0800 |
commit | b63e99500137c913bd801a2f22b6cf88c63b95c5 (patch) | |
tree | 68a58fb97935f35c6fb7bcbcfed73b1697db000a /Documentation/git-add.txt | |
parent | 3f061887c562b20d3ed3d1f764462cf986a1ad12 (diff) | |
download | git-b63e99500137c913bd801a2f22b6cf88c63b95c5.tar.gz |
Add "--patch" option to git-add--interactive
When the "--patch" option is supplied, the patch_update_cmd() function is
called bypassing the main_loop() and exits.
Seeing as builtin-add is the only caller of git-add--interactive we can
impose a strict requirement on the format of the arguments to avoid
possible ambiguity: an "--" argument must be used whenever any pathspecs
are passed, both with the "--patch" option and without it.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Diffstat (limited to 'Documentation/git-add.txt')
-rw-r--r-- | Documentation/git-add.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt index 63829d93cc..ce22de8d2e 100644 --- a/Documentation/git-add.txt +++ b/Documentation/git-add.txt @@ -61,7 +61,14 @@ OPTIONS -i, \--interactive:: Add modified contents in the working tree interactively to - the index. + the index. Optional path arguments may be supplied to limit + operation to a subset of the working tree. See ``Interactive + mode'' for details. + +-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. -u:: Update only files that git already knows about. This is similar |