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

Re: Make 'git stash list' more informative

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 7, 2025, 22:06 UTC
Message-ID
<xmqqiknflj8j.fsf@gitster.g>
In-Reply-To
<29E4ED32-4909-48EF-86BB-67111B62AE1A@gmail.com>
Lucas Seiki Oshiro <lucasseikioshiro@gmail.com> writes:
>> It contains the last commit's subject which often/usually doesn't
>> really describe the stash entry.
It depends on how you work.

I do agree that the work recorded in the stash entries tend to be pretty much unrelated to the work I was doing on the branch (hence the theme of the base commit). After all, if they are related, you're more likely not keeping the work in the stash entries---you'd rather be making completed commit on the branch.

However, I find that the subject of the base commit the stashed work was derived from works well as a memory aid to recall what I was working on when the stash entry was created.

So "doesn't really describe" is correct, but because stash is by design a local thing, it is not a failure that it "doesn't really describe"---the purpose of the message is to be something easily generated and help jog your memory later.

Having said that ...
> `git stash list` accepts the options from `git log`, so you can change
> look at its manpage to find other options that show the information
> that you want.
... this is an excellent suggestion.
Thanks.
Previous: Lucas Seiki OshiroNext: Lucas Seiki Oshiro
Message 3 of 4 in “Make 'git stash list' more informative”
  1. YuriApr 5, 2025
  2. Lucas Seiki OshiroApr 5, 2025
  3. Junio C HamanoApr 7, 2025
  4. Lucas Seiki OshiroApr 8, 2025

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.