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

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

From
Wincent Colaiuta <win@wincent.com>
Date
Feb 5, 2008, 11:06 UTC
Message-ID
<D512F3C0-3354-40BB-BD8D-8B3A85196825@wincent.com>
In-Reply-To
<1202207899-28578-1-git-send-email-tim@stoakes.net>
El 5/2/2008, a las 11:38, Tim Stoakes escribió:
> 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.

Isn't "rm" a bit misleading here? Seeing as the clear subcommand really does an "rm -rf".

Also, is there any other precedent in the command suite for abbreviating subcommand names in that way (ie. not just by shortening them, but by using alternative names based on filesystem commands)? It strikes me as a bit inconsistent.

Cheers, Wincent

Previous: Tim StoakesNext: Tim Stoakes
Message 2 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.