From: Nakul V S <vsnakul@gmail.com>
To: phillip.wood123@gmail.com
Cc: git@vger.kernel.org, gitster@pobox.com, ps@pks.im,
phillip.wood@dunelm.org.uk, gitgitgadget@gmail.com,
vsnakul@gmail.com
Subject: Re: [PATCH] sequencer: refuse to revert shallow boundary commits by default
Date: Sat, 31 Oct 2026 22:48:34 +0530 [thread overview]
Message-ID: <20261031171834.64081-1-vsnakul@gmail.com> (raw)
In-Reply-To: <7179f371-a709-476f-8e94-807d7b62ce6e@gmail.com>
Hi Phillip,
Thanks for the review. I've sent a v2 that addresses it:
https://lore.kernel.org/git/pull.2273.v2.git.1793455522168.gitgitgadget@gmail.com
> I wonder if it would be better to refuse to cherry-pick and rebase a
> shallow boundary commit as well.
Yes, I think so. v2 covers revert, cherry-pick and rebase, including
the "apply" backend of rebase.
> Do you know of a sensible use for reverting a shallow boundary or is
> the new option added out of caution in case someone wants it?
Honestly it was out of caution.I can't think of a real use for it. v2 keeps --allow-shallow-boundary for revert and cherry-pick only, and rebase always refuses. If you'd
rather not have an escape hatch at all, I'm happy to drop it.
> For such a rarely used option I don't think we need to add it to the
> synopsis
Fair enough, it's out of the synopsis now.
> It would be good to extract this into a helper function so that we
> don't have to copy the code to detect a shallow boundary each time we
> need to detect one.
Done. There is one helper now, so the error message lives in a single
place.
Thanks,
Nakul
next prev parent reply other threads:[~2026-10-31 17:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-21 10:09 [PATCH] sequencer: refuse to revert shallow boundary commits by default Nakul V S via GitGitGadget
2026-10-21 15:20 ` Phillip Wood
2026-10-21 19:11 ` Junio C Hamano
2026-10-26 10:58 ` Phillip Wood
2026-10-31 17:22 ` Nakul V S
2026-10-31 17:29 ` Nakul V S
2026-10-31 17:18 ` Nakul V S [this message]
2026-10-31 14:05 ` [PATCH v2] sequencer: refuse to pick or revert shallow boundary commits Nakul V S via GitGitGadget
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=20261031171834.64081-1-vsnakul@gmail.com \
--to=vsnakul@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=gitster@pobox.com \
--cc=phillip.wood123@gmail.com \
--cc=phillip.wood@dunelm.org.uk \
--cc=ps@pks.im \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.