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

Re: [PATCH] stash: add 'rename' subcommand

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jul 16, 2026, 21:08 UTC
Message-ID
<allISNh-b6Sc6y5-@fruit.crustytoothpaste.net>
In-Reply-To
<xmqqh5lyhlp6.fsf@gitster.g>
On 2026-07-16 at 17:46:13, Junio C Hamano wrote:
Show 15 quoted lines
> Asking for the actual use case is indeed very useful, and I highly
> appreciate the nudge.
> 
> "I cannot reword the message shown in 'git stash list' without this
> change" is not a use case.  It would be far more useful to know
> what real-world task you are blocked from accomplishing just
> because you cannot reword a misspelled entry in 'git stash list'.
> 
> Personally, I cannot think of any such roadblock.  If I find that
> a stash entry is worth tweaking right now, I would probably
> create a new branch for the task, unstash it there, and either
> make further changes or record the exact state with an updated
> message to help my future self.  After all, having a branch I
> can start working on immediately is far more useful than having
> the same stash entry with its spelling corrected.

I have a large number of stashes in my git.git repository (211 at present) and it may be that I, in a mad rush to solve some problem or another, went with the default message. I do this kind of thing with repositories at work all the time. But it's inconvenient to have to search through `git stash list -p` to see which change it was and which stash I need to pop to resume my work, so I can see the utility of this approach.

In my case, the stash is likely on an existing branch (such as my sha256-interop branch), so I don't want to create another branch right now, but I do want to distinguish a couple of different stashes.

Of course, I don't know what Emin's use case is, but I think it would in fact be useful to have and I can see myself using it. If my use case is valuable to others, anyone is free to summarize it in the commit message as a justification.

-- 
brian m. carlson (they/them)
Toronto, Ontario, CA
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 12 in “stash: add 'rename' subcommand”
  1. stash: add 'rename' subcommandEmin Özata via GitGitGadget, Jul 16, 2026
  2. Patrick SteinhardtJul 16, 2026
  3. Junio C HamanoJul 16, 2026
  4. brian m. carlsonJul 16, 2026
  5. Junio C HamanoJul 17, 2026
  6. erik88Jul 26, 2026
  7. Junio C HamanoJul 27, 2026
  8. EminJul 27, 2026
  9. stash: add 'reword' subcommandEmin Özata via GitGitGadget, Jul 27, 2026
  10. Junio C HamanoJul 27, 2026
  11. Junio C HamanoJul 28, 2026
  12. Patrick SteinhardtAug 11, 2026

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.