From: SZEDER Gábor Date: Tue, 2 Sep 2008 01:45:01 +0000 (+0200) Subject: Documentation: minor cleanup in a use case in 'git stash' manual X-Git-Tag: v1.6.0.2~31 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f733c70941a79e8d7a05d16fac89294ef0366bda;p=git.git Documentation: minor cleanup in a use case in 'git stash' manual There is no need to explicitly pass the file to be committed to 'git commit', because it's contents is already in the index. Signed-off-by: SZEDER Gábor Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt index e64e1f124..051f94d26 100644 --- a/Documentation/git-stash.txt +++ b/Documentation/git-stash.txt @@ -207,7 +207,7 @@ each change before committing: $ git add --patch foo # add just first part to the index $ git stash save --keep-index # save all other changes to the stash $ edit/build/test first part -$ git commit foo -m 'First part' # commit fully tested change +$ git commit -m 'First part' # commit fully tested change $ git stash pop # prepare to work on all other changes # ... repeat above five steps until one commit remains ... $ edit/build/test remaining parts