summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder@ira.uka.de>2008-09-02 01:45:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-09-02 05:02:11 (GMT)
commitf733c70941a79e8d7a05d16fac89294ef0366bda (patch)
tree82dffdfe16691a0c293a2c4fee10c5957a2c1aab /Documentation
parent9da6f0fff2d6ab4bfad36099b53c911bc498fc2e (diff)
downloadgit-f733c70941a79e8d7a05d16fac89294ef0366bda.zip
git-f733c70941a79e8d7a05d16fac89294ef0366bda.tar.gz
git-f733c70941a79e8d7a05d16fac89294ef0366bda.tar.bz2
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 <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-stash.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt
index e64e1f1..051f94d 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