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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 27, 2026, 05:45 UTC
Message-ID
<xmqqtsplouii.fsf@gitster.g>
In-Reply-To
<amXJcVadL8btF_gh@vader>
erik88 <erik88@gmail.com> writes:
Show 14 quoted lines
> On 26/07/16 06:11PM, Junio C Hamano wrote:
>> "brian m. carlson" <sandals@crustytoothpaste.net> writes:
>>
>> > 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.
>
> Same. I always accumulate 100+ stashes. I never bother with a message
> when I stash. 90-95% of the stashes are useless cruft but there's always
> an experiment, a script file of some sort, which turns out to be useful.

OK, so editing the log message for each stash entry is already a use case. In that case, I no longer object to the feature in principle. At least, I cannot think of a way for it to encourage any bad workflows.

The next step is for someone to review the implementation. I have not read the implementation at all, and it will be quite a while until I get to it (if I ever do).

>> Hmph, are you saying that you are going to wade through 211
>> stash entries one by one and reword them?
>
> Not me but my AI agent ;-)

I have no sympathy for you, then. Your AI agent should be able to unstash and restash 211 entries one by one and reword them just fine ;-).

Previous: erik88Next: Emin
Message 7 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.