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 29, 2014, 19:27 UTC
Message-ID
<xmqqlhrc2cfo.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20140729174357.GA20042@peff.net>
Jeff King <peff@peff.net> writes:
> I think that is my point, though. The user is _not_ aware that the
> commit in question is a merge. They stashed some stuff, and now they
> want to see the result. I'd like to show them a vanilla commit if the
> index is irrelevant, and otherwise show them something more interesting.

I actually think "git stash list" users should be made very aware that they are looking at merge commits, and also what two states each of these merge commits represents. "git stash --help" says that "list" takes any random option that you can give to "git log", and at that point you need to be very well aware what you are telling "log" to show and how.

It probably *was* a UI mistake to make "list" just delegate to "log" and it was a graver UI mistake that it was documented as such; otherwise we could have limited option set "git stash list" would take, which can be totally independent from what "git log" takes, and we could just have said "git stash list -p" is a way to view each entry with patch in a reasonable representation. But that ideal world no longer exists X-<.

Previous: Junio C HamanoNext: Jeff King
Message 11 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.