From: Jari Aalto Date: Sun, 13 Sep 2009 06:43:10 +0000 (+0300) Subject: Improve --patch option documentation in git-add X-Git-Tag: v1.6.5-rc1~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5f2b1e67ca807239cd3596c1eb943357def1ce17;p=git.git Improve --patch option documentation in git-add Signed-off-by: Jari Aalto Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt index e67b7e875..45ebf87ca 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