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

Re: [PATCH] Document git-stash

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 2, 2007, 10:33 UTC
Message-ID
<Pine.LNX.4.64.0707021129540.4438@racer.site>
In-Reply-To
<20070702041046.GB17384@coredump.intra.peff.net>
Hi,
On Mon, 2 Jul 2007, Jeff King wrote:
Show 11 quoted lines
> On Sun, Jul 01, 2007 at 02:54:00PM -0700, Junio C Hamano wrote:
> 
> > I would further suggest that we _require_ 'git stash save' to create a 
> > new one and perhaps make the non-subcommand case run 'git stash list'.  
> > While I was trying the code out I accidentally created a new stash 
> > when I did not mean to, which pushed the stash I wanted to apply down 
> > in the list every time I made such a mistake.
> 
> I think that makes sense...it's somehow cleaner to me if the 
> non-subcommand case doesn't make any changes (maybe just because I like 
> to explore commands by running them).
I disagree entirely.

The _only_ default subcommand for git-stash, which makes _any_ sense, is "save". I have run my own version of it several times, and it _literally_ was in those circumstances "hack, hack, hack, aargh, stash that, I'll need it later". "git cherry-pick stash" and "git reflog show stash" were needed far less.

I am utterly uninterested in the stash list.

Ciao, Dscho

Previous: Jeff KingNext: Johannes Schindelin
Message 25 of 34 in “Add git-stash script”
  1. Add git-stash scriptしらいしななこ, Jun 30, 2007
  2. Johannes SchindelinJun 30, 2007
  3. Add git-stash scriptしらいしななこ, Jun 30, 2007
  4. Jeff KingJun 30, 2007
  5. Junio C HamanoJun 30, 2007
  6. Johannes SchindelinJun 30, 2007
  7. Junio C HamanoJun 30, 2007
  8. しらいしななこJun 30, 2007
  9. Add a manual page for git-stashJohannes Schindelin, Jun 30, 2007
  10. Frank LichtenheldJun 30, 2007
  11. Johannes SchindelinJun 30, 2007
  12. Frank LichtenheldJun 30, 2007
  13. Junio C HamanoJun 30, 2007
  14. Johannes SchindelinJun 30, 2007
  15. Junio C HamanoJun 30, 2007
  16. Johannes SchindelinJun 30, 2007
  17. Document git-stashしらいしななこ, Jul 1, 2007
  18. Junio C HamanoJul 1, 2007
  19. Jeff KingJul 1, 2007
  20. Junio C HamanoJul 1, 2007
  21. しらいしななこJul 1, 2007
  22. Junio C HamanoJul 1, 2007
  23. Johannes SchindelinJul 1, 2007
  24. Jeff KingJul 2, 2007
  25. Johannes SchindelinJul 2, 2007
  26. git-stash: Make "save" the default operation againJohannes Schindelin, Jul 2, 2007
  27. Jeff KingJul 2, 2007
  28. Johannes SchindelinJul 2, 2007
  29. Junio C HamanoJul 2, 2007
  30. Junio C HamanoJul 1, 2007
  31. Add tests for git-stashJohannes Schindelin, Jun 30, 2007
  32. Jeff KingJul 1, 2007
  33. Junio C HamanoJul 1, 2007
  34. Jeff KingJul 2, 2007

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.