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

Re: [PATCH] git-stash: add new 'drop' subcommand

From
Jeff King <peff@peff.net>
Date
Jan 5, 2008, 03:51 UTC
Message-ID
<20080105035118.GB26892@coredump.intra.peff.net>
In-Reply-To
<477EDDD4.5060509@nrlssc.navy.mil>
On Fri, Jan 04, 2008 at 07:31:00PM -0600, Brandon Casey wrote:
> Thus far I haven't been a big user of git stash, but I plan to
> use it more and I expect to use 'drop' more often than
> 'clear'. I expect in the common case there will be a single

There was some discussion of a sensible name, but I don't recall seeing a resolution on this: why not "clear stash@{0}" to clear one, and "clear" to clear all? Otherwise, I foresee "git stash clear stash@{0}" followed by "oops, I just deleted all of my stashes."

I guess you get "git stash drop" as a synonym for "git stash drop stash@{0}" this way, but it just seems mean to users to make them remember which of "drop" and "clear" does what they want.

-Peff
Previous: Brandon CaseyNext: JM Ibanez
Message 4 of 8 in “git-stash: add new 'drop' subcommand”
  1. git-stash: add new 'drop' subcommandBrandon Casey, Jan 5, 2008
  2. Junio C HamanoJan 5, 2008
  3. Brandon CaseyJan 5, 2008
  4. Jeff KingJan 5, 2008
  5. JM IbanezJan 5, 2008
  6. git-stash clear: refuse to work with extra parameter for nowJunio C Hamano, Jan 5, 2008
  7. Jeff KingJan 5, 2008
  8. Marco CostalbaJan 5, 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.