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

Re: Incorrect default for git stash?

From
Jeff King <peff@peff.net>
Date
Jun 17, 2008, 22:32 UTC
Message-ID
<20080617223205.GA10830@sigill.intra.peff.net>
In-Reply-To
<loom.20080617T220852-922@post.gmane.org>
On Tue, Jun 17, 2008 at 10:21:23PM +0000, Eric Raible wrote:
Show 12 quoted lines
> Does it bother anyone else that the default for
> git stash is inconsistent with branch & tag?
> 
> git branch -> list branches
> git tag    -> list tags
> git stash  -> create a stash
> 
> I understand that branches & tags must explicitly named
> and that stashes are by default automatically named.
> 
> But wouldn't it be less surprising to me if the default
> was 'list' instead of 'save'?

I don't know if it still bothers people, but this was discussed when stash was first merged:

  http://kerneltrap.org/mailarchive/git/2007/7/1/250414
-Peff
Previous: Eric Raible
Message 8 of 8 in “Incorrect default for git stash?”
  1. Eric RaibleJun 17, 2008
  2. patrick.higgins@cexp.comJun 17, 2008
  3. David KågedalJun 23, 2008
  4. Junio C HamanoJun 17, 2008
  5. Eric RaibleJun 17, 2008
  6. しらいしななこJun 17, 2008
  7. Eric RaibleJun 18, 2008
  8. Jeff KingJun 17, 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.