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

Re: [PATCH v2 0/3] fast-import: add 'strip-if-invalid' mode to --signed-commits=<mode>

From
Christian Couder <christian.couder@gmail.com>
Date
Nov 18, 2025, 18:29 UTC
Message-ID
<CAP8UFD03YK47nONVRV_wqOEanC8Oth1iRzsFv=eFhbFs6Q5mPA@mail.gmail.com>
In-Reply-To
<CABPp-BHY4SLmWY=V5aHJ6igN0GWeg6V1MoWDwszPe2O38wqBhw@mail.gmail.com>
On Mon, Nov 17, 2025 at 8:52 PM Elijah Newren <newren@gmail.com> wrote:
Show 21 quoted lines
>
> On Sun, Nov 16, 2025 at 8:35 PM Christian Couder
> <christian.couder@gmail.com> wrote:
> > There are no code changes in this v2, only commit message,
> > documentation and test changes:
> >
> > * Rebased on current 'master'. This avoids the need to mark some
> >   strings for translation as a recent series doing that has been
> >   recently merged to 'master'.
> >
> > * In patch 3/3, improved the commit message to better justify the new
> >   feature using some sentences from Elijah.
> >
> > * In patch 3/3, removed tests with dual signatures. This avoids a
> >   conflict with a separate series from brian carlson that adds a
> >   "RUST" prereq that is then needed to run tests with dual signatures.
>
> I'm a bit surprised; from
> https://lore.kernel.org/git/xmqqms4rry7f.fsf@gitster.g/, I thought you
> were going to rearrange the tests to avoid the conflict, not delete
> them.  Are no tests of this new functionality needed?

There are still 5 new tests left in patch 3/3 that are testing the new 'strip-if-invalid' functionality after I removed the 2 tests that are related to dual signatures.

In "t/t9305-fast-import-signatures.sh", dual signatures are already tested to work with `git fast-import --signed-commits=<mode>` by the tests that brian's f6581e23 (repository: require Rust support for interoperability, 2025-10-27) modifies.

f6581e23 not only adds the RUST prereq to these tests, but it also introduces the RUST prereq itself in "t/test-lib.sh" with:

+test_lazy_prereq RUST '
+       test "$(build_option rust)" = enabled
+'

So it's much simpler to just remove the 2 new dual signature tests that will need the RUST prereq when f6581e23 is merged. We can still add back these 2 new tests after f6581e23 is merged if we think it's worth it.

To avoid the conflict I could introduce the RUST prereq itself in "t/test-lib.sh" with the same code that f6581e23 uses, but then how do I justify it? What happens if f6581e23 is not actually merged?

It seems to me that if we really want the 2 new dual signature tests in this series, we would have to wait until f6581e23 is merged or discarded.

Show 5 quoted lines
> > * In patch 3/3, improved documentation of the new option to say that
> >   validation behaves as the validation performed by `git
> >   verify-commit`.
>
> Looking over the range diff, the other changes look good.
Thanks for your review.
Previous: Elijah NewrenNext: Junio C Hamano
Message 18 of 20 in “fast-import: add 'strip-if-invalid' mode to --signed-commits=<mode>”
  1. 0/3 fast-import: add 'strip-if-invalid' mode to --signed-commits=<mode>Christian Couder, Nov 5, 2025
  2. 1/3 fast-import: refactor finalize_commit_buffer()Christian Couder, Nov 5, 2025
  3. 2/3 commit: refactor verify_commit_buffer()Christian Couder, Nov 5, 2025
  4. 3/3 fast-import: add 'strip-if-invalid' mode to --signed-commits=<mode>Christian Couder, Nov 5, 2025
  5. Junio C HamanoNov 8, 2025
  6. Christian CouderNov 12, 2025
  7. Junio C HamanoNov 12, 2025
  8. Junio C HamanoNov 5, 2025
  9. Elijah NewrenNov 8, 2025
  10. Christian CouderNov 12, 2025
  11. Christian CouderNov 12, 2025
  12. Junio C HamanoNov 12, 2025
  13. 0/3 fast-import: add 'strip-if-invalid' mode to --signed-commits=<mode>Christian Couder, Nov 17, 2025
  14. 1/3 fast-import: refactor finalize_commit_buffer()Christian Couder, Nov 17, 2025
  15. 2/3 commit: refactor verify_commit_buffer()Christian Couder, Nov 17, 2025
  16. 3/3 fast-import: add 'strip-if-invalid' mode to --signed-commits=<mode>Christian Couder, Nov 17, 2025
  17. Elijah NewrenNov 17, 2025
  18. Christian CouderNov 18, 2025
  19. Junio C HamanoNov 18, 2025
  20. Elijah NewrenNov 18, 2025

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.