From: Junio C Hamano <gitster@pobox.com>
To: Phillip Wood <phillip.wood123@gmail.com>
Cc: Harald Nordgren via GitGitGadget <gitgitgadget@gmail.com>,
git@vger.kernel.org, Harald Nordgren <haraldnordgren@gmail.com>
Subject: Re: [PATCH] stash: allow custom conflict labels for pop
Date: Thu, 01 Oct 2026 10:58:40 -0700 [thread overview]
Message-ID: <xmqqy0ch481b.fsf@gitster.g> (raw)
In-Reply-To: <93321573-2164-4bbd-b884-7d6287c400b3@gmail.com> (Phillip Wood's message of "Thu, 1 Oct 2026 10:47:52 +0100")
Phillip Wood <phillip.wood123@gmail.com> writes:
> On 30/09/2026 22:33, Junio C Hamano wrote:
>> "Harald Nordgren via GitGitGadget" <gitgitgadget@gmail.com> writes:
>>
>> This is not a new problem, but is it just me who finds this
>> "feature" more about "because we can do it", not "because we need to
>> have it"? Stepping back a bit, why did we add these three options
>> to "stash apply" in the first place?
>
> So we could have meaningful conflict labels for "git checkout -m".
Yes, I know (as I already written in the part you quoted below your
"Thanks"). What I didn't realize was that we spawned "git stash
apply" as a subprocess from sequencer, not as an internal subroutine
call, in do_stash_apply(). Of course, with that calling sequence,
we do need to expose these options to "git stash apply".
>> If there is no good use case, perhaps what we should be doing is to
>> remove from "git stash apply" these three options, not adding the
>> same to another command.
>
> I think having better labels for commands that are autostashing is a
> good use case for adding labels to "apply" but I'm not convinced there
> is a good use case for "pop". As you say below is anyone really going to
> type out the labels when they pop a stash? Scripts should probably be
> using "create" and "apply" rather than "push" and "pop" so are already
> covered.
Yup.
next prev parent reply other threads:[~2026-10-01 17:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 20:58 [PATCH] stash: allow custom conflict labels for pop Harald Nordgren via GitGitGadget
2026-09-30 21:33 ` Junio C Hamano
2026-10-01 9:47 ` Phillip Wood
2026-10-01 17:58 ` Junio C Hamano [this message]
2026-10-02 7:21 ` Harald Nordgren
2026-10-02 14:31 ` Junio C Hamano
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=xmqqy0ch481b.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=haraldnordgren@gmail.com \
--cc=phillip.wood123@gmail.com \
/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