From: Junio C Hamano <gitster@pobox.com>
To: "brian m. carlson" <sandals@crustytoothpaste.net>
Cc: "Patrick Steinhardt" <ps@pks.im>,
"Emin Özata via GitGitGadget" <gitgitgadget@gmail.com>,
git@vger.kernel.org, "Greg Hewgill" <greg@hewgill.com>,
"Micheil Smith" <micheil@brandedcode.com>,
"Michael Haggerty" <mhagger@alum.mit.edu>,
"Ævar Arnfjörð Bjarmason" <avarab@gmail.com>,
"Emin Özata" <eminozata@proton.me>
Subject: Re: [PATCH] stash: add 'rename' subcommand
Date: Thu, 16 Jul 2026 18:11:28 -0700 [thread overview]
Message-ID: <xmqqpl0mbetb.fsf@gitster.g> (raw)
In-Reply-To: <allISNh-b6Sc6y5-@fruit.crustytoothpaste.net> (brian m. carlson's message of "Thu, 16 Jul 2026 21:08:24 +0000")
"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.
Hmph, are you saying that you are going to wade through 211
stash entries one by one and reword them?
> 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.
This is not necessarily related to what Emin's patch does or tries
to do, but it suggests to me that it would be ultra-nice if we could
have a stash that is associated with each individual branch. It is
as if we have been living in a world with only detached HEADs and
you suddenly invented named branches. ;-)
Well, the original design motivation behind "git stash" was the
"boss is here" emergency mode, and the expectation was that such
an emergency would not nest to leave anyone with more than a
handful of entries. Thus, a single stash shared repository-wide
across your branches was not a huge problem. But our workflows
have evolved, so our tool support may have to evolve alongside
them.
Thanks for the food for thought.
prev parent reply other threads:[~2026-07-17 1:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-16 8:31 [PATCH] stash: add 'rename' subcommand Emin Özata via GitGitGadget
2026-07-16 10:08 ` Patrick Steinhardt
2026-07-16 17:46 ` Junio C Hamano
2026-07-16 21:08 ` brian m. carlson
2026-07-17 1:11 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqpl0mbetb.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=avarab@gmail.com \
--cc=eminozata@proton.me \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=greg@hewgill.com \
--cc=mhagger@alum.mit.edu \
--cc=micheil@brandedcode.com \
--cc=ps@pks.im \
--cc=sandals@crustytoothpaste.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox