git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-stash: alias 'list' to 'ls' and 'clear' to 'rm'
@ 2008-02-05 10:38 Tim Stoakes
  2008-02-05 11:06 ` Wincent Colaiuta
  0 siblings, 1 reply; 9+ messages in thread
From: Tim Stoakes @ 2008-02-05 10:38 UTC (permalink / raw)
  To: git; +Cc: gitster, Tim Stoakes

Signed-off-by: Tim Stoakes <tim@stoakes.net>
---
 Documentation/git-stash.txt |    2 ++
 git-stash.sh                |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt
index cd0dc1b..fc5866f 100644
--- a/Documentation/git-stash.txt
+++ b/Documentation/git-stash.txt
@@ -44,6 +44,7 @@ save [<message>]::
 	the description along with the stashed state.
 
 list::
+ls::
 
 	List the stashes that you currently have.  Each 'stash' is listed
 	with its name (e.g. `stash@\{0}` is the latest stash, `stash@\{1}` is
@@ -79,6 +80,7 @@ have conflicts (which are stored in the index, where you therefore can no
 longer apply the changes as they were originally).
 
 clear::
+rm::
 	Remove all the stashed states. Note that those states will then
 	be subject to pruning, and may be difficult or impossible to recover.
 
diff --git a/git-stash.sh b/git-stash.sh
index b00f888..8884950 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -198,7 +198,7 @@ apply_stash () {
 
 # Main command set
 case "$1" in
-list)
+list | ls)
 	shift
 	if test $# = 0
 	then
@@ -219,7 +219,7 @@ apply)
 	shift
 	apply_stash "$@"
 	;;
-clear)
+clear | rm)
 	shift
 	clear_stash "$@"
 	;;
-- 
1.5.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-02-06 23:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05 10:38 [PATCH] git-stash: alias 'list' to 'ls' and 'clear' to 'rm' Tim Stoakes
2008-02-05 11:06 ` Wincent Colaiuta
2008-02-05 11:20   ` Tim Stoakes
2008-02-05 12:12     ` Wincent Colaiuta
2008-02-05 14:03       ` Johannes Schindelin
2008-02-06 16:19         ` [PATCH WIP] git-stash: add new 'drop' subcommand Brandon Casey
2008-02-06 17:11           ` Paolo Bonzini
2008-02-06 19:44             ` Junio C Hamano
2008-02-06 23:53           ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).