git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-stash: alias 'list' to 'ls' and 'clear' to 'rm'

From
TSTim Stoakes <tim@stoakes.net>
Date
Feb 5, 2008, 10:38 UTC
Message-ID
<1202207899-28578-1-git-send-email-tim@stoakes.net>
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
Next: Wincent Colaiuta
Message 1 of 9 in “git-stash: alias 'list' to 'ls' and 'clear' to 'rm'”
  1. git-stash: alias 'list' to 'ls' and 'clear' to 'rm'Tim Stoakes, Feb 5, 2008
  2. Wincent ColaiutaFeb 5, 2008
  3. Tim StoakesFeb 5, 2008
  4. Wincent ColaiutaFeb 5, 2008
  5. Johannes SchindelinFeb 5, 2008
  6. git-stash: add new 'drop' subcommandBrandon Casey, Feb 6, 2008
  7. Paolo BonziniFeb 6, 2008
  8. Junio C HamanoFeb 6, 2008
  9. Johannes SchindelinFeb 6, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.