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

Re: [PATCH v2] sequencer: refuse to pick or revert shallow boundary commits

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 1, 2026, 02:30 UTC
Message-ID
<xmqqwlqx1dx0.fsf@gitster.g>
In-Reply-To
<pull.2273.v2.git.1793455522168.gitgitgadget@gmail.com>
"Nakul V S via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 12 quoted lines
>     Changes since v1:
>     
>      * Also refuse cherry-pick and rebase (merge, interactive and --apply
>        backends), as suggested by Phillip.
>      * Check when the list of commits is built rather than in
>        do_pick_commit(), so a refused command leaves no state behind. Uses a
>        single shared helper.
>      * --allow-shallow-boundary is now accepted by cherry-pick as well, and
>        is saved across --continue.
>      * Dropped the option from the revert synopsis.
>      * rebase --autostash restores the user's changes if the rebase is
>        refused.
All of these sounds sensible.
>      * Rebased onto current master.

Was it necessary? On which commit was the previous round based? Has there been any changes that made it necessary to rebase since then?

>     Not covered here: git commit --amend, and pick/revert lines typed into
>     the rebase todo by hand.

It is OK to start small and extend coverage step by step, as we are making strict improvements. Do we however have some vision on how these would later be supported?

> +	else if (!strcmp(key, "options.allow-shallow-boundary"))
> +		opts->allow_shallow_boundary =
> +			git_config_bool_or_int(key, value, ctx->kvi, &error_flag);
Hmph, why not git_config_bool()?

Unlike commit.verbose or status.submodulesummary, I didn't expect this to have anything more than a simple "yes we allow it" or "no don't allow it" answer. "all the other boolean neighbors somehow use it" is an understandable answer, but I expect people to do better than that.

Overall things seem to be in a good shape. Except for tiny details like this one.

Thanks.
Previous: Nakul V S via GitGitGadget
Message 9 of 9 in “sequencer: refuse to revert shallow boundary commits by default”
  1. sequencer: refuse to revert shallow boundary commits by defaultNakul V S via GitGitGadget, Oct 21, 2026
  2. Phillip WoodOct 21, 2026
  3. Junio C HamanoOct 21, 2026
  4. Phillip WoodOct 26, 2026
  5. Nakul V SOct 31, 2026
  6. Nakul V SOct 31, 2026
  7. Nakul V SOct 31, 2026
  8. sequencer: refuse to pick or revert shallow boundary commitsNakul V S via GitGitGadget, Oct 31, 2026
  9. Junio C HamanoNov 1, 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.