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

Re: Feature: git stash pop --always-drop

From
EAEd Avis <eda@waniasset.com>
Date
Aug 10, 2015, 14:01 UTC
Message-ID
<loom.20150810T155117-978@post.gmane.org>
In-Reply-To
<20150810134957.GC6763@sigill.intra.peff.net>
>

Yes, my use case is that I get confused about whether the stash has been dropped or not and whether I might have stashed something else in the meantime. So for me plain 'git stash drop' feels a bit dangerous.

Jeff King <peff <at> peff.net> writes:
>I also wondered if the "dropped" message is
>sufficiently clear to new users. The point of it, I think, is to allow a
>final "oops, I didn't mean to do that" moment. But there are no
>instructions for how one would re-create the same stash.

Right - myself I didn't even realize that recreating the stash was possible (though I was vaguely aware that old stashes float around somewhere until they are garbage collected many months later).

git stash is a relatively infrequent operation and quite exotic, so it wouldn't hurt to add lots of chatter to it.

>>Another feature I would like to see is a kind of atomic stash apply, 
>I think that may be a bit harder, as the merge machinery would have to
>know how to be atomic.
If git merge-recursive had a --dry-run flag that might take care of it.
-- 
Ed Avis <eda@waniasset.com>
Previous: Jeff KingNext: Junio C Hamano
Message 7 of 9 in “Feature: git stash pop --always-drop”
  1. Ed AvisAug 10, 2015
  2. Jeff KingAug 10, 2015
  3. Ed AvisAug 10, 2015
  4. Jeff KingAug 10, 2015
  5. Ed AvisAug 10, 2015
  6. Jeff KingAug 10, 2015
  7. Ed AvisAug 10, 2015
  8. Junio C HamanoAug 10, 2015
  9. Ed AvisAug 10, 2015

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.