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

Document "git stash message..."

The command was recently updated to take message on the command line, but this feature has not been documented. Signed-off-by: Nanako Shiraishi <nanako3@bluebottle.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

しらいしななこ committed Jul 17, 2007 at 17:15 UTC ec96e0f6a4244e3bccc745eeb4cb6daa80a347e4
1 file changed +7 -4
Documentation/git-stash.txt
+7 -4
@@ -8,7 +8,8 @@ git-stash - Stash the changes in a dirty working directory away
8 SYNOPSIS
9 --------
10 [verse]
11 -'git-stash' (save | list | show [<stash>] | apply [<stash>] | clear)
11 +'git-stash' (list | show [<stash>] | apply [<stash>] | clear)
12 +'git-stash' [save] [message...]
13
14 DESCRIPTION
15 -----------
@@ -22,7 +23,9 @@ The modifications stashed away by this command can be listed with
23 `git-stash list`, inspected with `git-stash show`, and restored
24 (potentially on top of a different commit) with `git-stash apply`.
25 Calling git-stash without any arguments is equivalent to `git-stash
25 -save`.
26 +save`. A stash is by default listed as "WIP on 'branchname' ...", but
27 +you can give a more descriptive message on the command line when
28 +you create one.
29
30 The latest stash you created is stored in `$GIT_DIR/refs/stash`; older
31 stashes are found in the reflog of this reference and can be named using
@@ -48,8 +51,8 @@ list::
51 based on.
52 +
53 ----------------------------------------------------------------
51 -stash@{0}: submit: 6ebd0e2... Add git-stash
52 -stash@{1}: master: 9cc0589... Merge branch 'master' of gfi
54 +stash@{0}: WIP on submit: 6ebd0e2... Update git-stash documentation
55 +stash@{1}: On master: 9cc0589... Add git-stash
56 ----------------------------------------------------------------
57
58 show [<stash>]::