summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2008-02-22 19:04:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-23 06:58:55 (GMT)
commite25d5f9c82ef6a676de616bd28751cdfbcd53b15 (patch)
tree7b7f38a5fdc314d2262901c54c2bd65104e549f7 /Documentation
parent55f105653715356fe0b2392445a6f394b891402c (diff)
downloadgit-e25d5f9c82ef6a676de616bd28751cdfbcd53b15.zip
git-e25d5f9c82ef6a676de616bd28751cdfbcd53b15.tar.gz
git-e25d5f9c82ef6a676de616bd28751cdfbcd53b15.tar.bz2
git-stash: add new 'drop' subcommand
This allows a single stash entry to be deleted. It takes an optional argument which is a stash reflog entry. If no arguments are supplied, it drops the most recent stash entry. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-stash.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt
index 48e6f5a..f50c24c 100644
--- a/Documentation/git-stash.txt
+++ b/Documentation/git-stash.txt
@@ -8,7 +8,7 @@ git-stash - Stash the changes in a dirty working directory away
SYNOPSIS
--------
[verse]
-'git-stash' (list | show [<stash>] | apply [<stash>] | clear)
+'git-stash' (list | show [<stash>] | apply [<stash>] | clear | drop [<stash>])
'git-stash' [save [<message>]]
DESCRIPTION
@@ -85,6 +85,11 @@ clear::
Remove all the stashed states. Note that those states will then
be subject to pruning, and may be difficult or impossible to recover.
+drop [<stash>]::
+
+ Remove a single stashed state from the stash list. When no `<stash>`
+ is given, it removes the latest one. i.e. `stash@\{0}`
+
DISCUSSION
----------