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

Re: stash-p broken?

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 31, 2014, 16:49 UTC
Message-ID
<xmqqbns5xyl6.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20140731002321.GD22297@peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> Hmph. To be honest, I am starting to wonder if implying "--first-parent"
> is a more sensible option for "stash list". It matches "stash show", at
> least, and it is not unreasonable to simply present the changes in the
> working tree by default, and ignore the index. People who are more
> clueful can pick apart the commits using "git log" themselves.
Yup, I tend to agree.

After thinking about this a lot, I really wish that we did not have "stash apply" and "stash pop", but just "stash save" and a single "stash restore" that either checks out the original branch (if its head have not moved) or detaches the HEAD at the original commit (otherwise), and then restores the state of the index and the working tree (with or without untracked) and nothing else, but the details are too long to fit in this topic ;-)

Previous: Jeff KingNext: Junio C Hamano
Message 10 of 12 in “stash-p broken?”
  1. Michael MigdolJul 29, 2014
  2. Michael MigdolJul 29, 2014
  3. brian m. carlsonJul 29, 2014
  4. Øystein WalleJul 29, 2014
  5. Jeff KingJul 29, 2014
  6. Junio C HamanoJul 29, 2014
  7. Jeff KingJul 29, 2014
  8. Junio C HamanoJul 29, 2014
  9. Jeff KingJul 31, 2014
  10. Junio C HamanoJul 31, 2014
  11. Junio C HamanoJul 29, 2014
  12. Jeff KingJul 31, 2014

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.