@matheusbsbs / matheus-bagliano / commits / f733c70941
Fork 0

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>

SZEDER Gábor committed Sep 2, 2008 at 03:45 UTC f733c70941a79e8d7a05d16fac89294ef0366bda
1 file changed +1 -1
Documentation/git-stash.txt
+1 -1
@@ -207,7 +207,7 @@ each change before committing:
207 $ git add --patch foo # add just first part to the index
208 $ git stash save --keep-index # save all other changes to the stash
209 $ edit/build/test first part
210 -$ git commit foo -m 'First part' # commit fully tested change
210 +$ git commit -m 'First part' # commit fully tested change
211 $ git stash pop # prepare to work on all other changes
212 # ... repeat above five steps until one commit remains ...
213 $ edit/build/test remaining parts