Commit ec96e0f6 authored by しらいしななこ's avatar しらいしななこ Committed by Junio C Hamano

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: default avatarNanako Shiraishi <[email protected]>
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent 0cf73755
......@@ -8,7 +8,8 @@ git-stash - Stash the changes in a dirty working directory away
SYNOPSIS
--------
[verse]
'git-stash' (save | list | show [<stash>] | apply [<stash>] | clear)
'git-stash' (list | show [<stash>] | apply [<stash>] | clear)
'git-stash' [save] [message...]
DESCRIPTION
-----------
......@@ -22,7 +23,9 @@ The modifications stashed away by this command can be listed with
`git-stash list`, inspected with `git-stash show`, and restored
(potentially on top of a different commit) with `git-stash apply`.
Calling git-stash without any arguments is equivalent to `git-stash
save`.
save`. A stash is by default listed as "WIP on 'branchname' ...", but
you can give a more descriptive message on the command line when
you create one.
The latest stash you created is stored in `$GIT_DIR/refs/stash`; older
stashes are found in the reflog of this reference and can be named using
......@@ -48,8 +51,8 @@ list::
based on.
+
----------------------------------------------------------------
[email protected]{0}: submit: 6ebd0e2... Add git-stash
[email protected]{1}: master: 9cc0589... Merge branch 'master' of gfi
[email protected]{0}: WIP on submit: 6ebd0e2... Update git-stash documentation
[email protected]{1}: On master: 9cc0589... Add git-stash
----------------------------------------------------------------
show [<stash>]::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment