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

Re: [PATCH] Document git-stash

From
Jeff King <peff@peff.net>
Date
Jul 1, 2007, 09:19 UTC
Message-ID
<20070701091905.GA13559@coredump.intra.peff.net>
In-Reply-To
<200707010910.l619A23c027837@mi0.bluebottle.com>
On Sun, Jul 01, 2007 at 06:06:29PM +0900, しらいしななこ wrote:
> I don't understand myself anymore, either (^_^;) I just tried to follow
> Jnio's earlier suggestion in his message.  He said this.
OK, we will wait for Junio to clarify tomorrow. :)
Show 9 quoted lines
> >> +	Removes all the stashed states.
> >
> > Maybe a note to indicate that this can lose data? Something like:
> >
> >   ...stashed states. Note that those states will then be subject to
> >   pruning, and may be difficult or impossible to recover.
> 
> I see.  When I wrote it, I thought that saying "removes" was enough.  It
> seemed obvious to me that you would lose it when you remove it.

It is "enough" in the sense that the meaning is clear, but in general it is very hard to convince git to forget things, and I think that is a feature. There are so few commands in git where you can "lose" data that I think it is worth marking them with a big X.

Really, I don't see the need to use 'clear' in general. The reflog works as a stack, so old stashes will get out of the "top 10" eventually anyway. In the long run, they will be cleaned up by "git reflog expire" (or indirectly by "git gc").

> Thanks for fixing my language.  I am not very good at writing English,
> but you probably have already found it out (^_^;).

Quite the contrary. If it had been very badly written, it would have just been easier to rewrite it than to point out the few mistakes. :)

-Peff
Previous: Johannes SchindelinNext: Junio C Hamano
Message 32 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.