From: Junio C Hamano <gitster@pobox.com>
To: "Wonseok Oh via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, Phillip Wood <phillip.wood123@gmail.com>,
Wonseok Oh <wonseok_oh@korea.ac.kr>
Subject: Re: [PATCH v2 0/2] sequencer: save the null OID for an unborn branch
Date: Wed, 25 Nov 2026 09:17:38 -0800 [thread overview]
Message-ID: <xmqqwlq07rv1.fsf@gitster.g> (raw)
In-Reply-To: <pull.2317.v2.git.1795577024.gitgitgadget@gmail.com> (Wonseok Oh via GitGitGadget's message of "Wed, 25 Nov 2026 03:23:42 +0000")
"Wonseok Oh via GitGitGadget" <gitgitgadget@gmail.com> writes:
> When "git cherry-pick" picks multiple commits onto an unborn branch, it
> saves an uninitialized object ID in .git/sequencer/head, so "--abort"
> behaves unpredictably. Patch 1 saves the null OID there. Patch 2 makes
> .git/sequencer/abort-safety hold the null OID for an unborn branch as well,
> instead of leaving it empty, as Phillip suggested.
The split in this iteration addresses the feedback from v1 cleanly.
Keeping the fix for the uninitialized OID in .git/sequencer/head
separate from the .git/sequencer/abort-safety update makes both changes
straightforward to verify, and the test adjustments in patch 1 match the
commit log scenario well.
prev parent reply other threads:[~2026-11-25 17:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 6:30 [PATCH] sequencer: reset saved HEAD OID when picking onto an unborn branch Wonseok Oh via GitGitGadget
2026-11-23 14:32 ` Phillip Wood
2026-11-24 2:33 ` Wonseok Oh
2026-11-24 10:41 ` Phillip Wood
2026-11-24 14:54 ` Junio C Hamano
2026-11-25 3:23 ` [PATCH v2 0/2] sequencer: save the null OID for " Wonseok Oh via GitGitGadget
2026-11-25 3:23 ` [PATCH v2 1/2] sequencer: clear saved HEAD OID when picking onto " Wonseok Oh via GitGitGadget
2026-11-25 16:57 ` Junio C Hamano
2026-11-25 3:23 ` [PATCH v2 2/2] sequencer: save the null OID in abort-safety on " Wonseok Oh via GitGitGadget
2026-11-25 17:07 ` Junio C Hamano
2026-11-26 16:32 ` Phillip Wood
2026-11-25 17:17 ` 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=xmqqwlq07rv1.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=phillip.wood123@gmail.com \
--cc=wonseok_oh@korea.ac.kr \
/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