git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 18:13 UTC

Re: [PATCH 1/2] t3507: pin CHERRY_PICK_HEAD absence for a conflicting --no-commit

From
PWPhillip Wood <phillip.wood123@gmail.com>
Date
Sep 4, 2026, 13:57 UTC
Message-ID
<6d9595fc-6dc0-4bbc-b060-b34d782c6215@gmail.com>
In-Reply-To
<20260904124507.12977-1-f@lex.la>
On 04/09/2026 13:45, Aleksei Sviridkin wrote:
Show 12 quoted lines
> Phillip Wood <phillip.wood123@gmail.com> writes:
>> What does pinning a test mean?
>> [...]
>> Using test_must_fail() here without checking the error message means
>> we don't verify the reason that the cherry-pick failed.
> 
> Dropped the test, so the wording goes with it. "pin" was jargon, sorry.
> 
> Your placement was the right one: the advice test is what tells us the
> pick stopped on a conflict, which the bare test_must_fail did not. But
> the clean-pick test at t3507:98 and the conflicting case share the
> !opts->no_commit guard, so the assertion had no coverage left to add.

I don't follow this at all - where is the existing check that CHERRY_PICK_HEAD does not exist when "git cherry-pick --no-commit" stops for conflicts? I was suggesting that we add a check for that to the test "advice from failed cherry-pick --no-commit", I'd forgotten when I wrote my earlier email that we have a helper function test_ref_missing() to do just that.

Thanks
Phillip
Previous: Phillip WoodNext: Junio C Hamano
Message 12 of 21 in “t3507: pin CHERRY_PICK_HEAD absence for a conflicting --no-commit”
  1. 1/2 t3507: pin CHERRY_PICK_HEAD absence for a conflicting --no-commitAleksei Sviridkin, Sep 3, 2026
  2. 2/2 doc: cherry-pick: note --no-commit skips CHERRY_PICK_HEADAleksei Sviridkin, Sep 3, 2026
  3. Junio C HamanoSep 3, 2026
  4. Aleksei SviridkinSep 3, 2026
  5. Patrick SteinhardtSep 4, 2026
  6. Phillip WoodSep 4, 2026
  7. Phillip WoodSep 4, 2026
  8. doc: cherry-pick: note --no-commit skips CHERRY_PICK_HEADAleksei Sviridkin, Sep 4, 2026
  9. Aleksei SviridkinSep 4, 2026
  10. Aleksei SviridkinSep 4, 2026
  11. Phillip WoodSep 4, 2026
  12. Phillip WoodSep 4, 2026
  13. Junio C HamanoSep 4, 2026
  14. Junio C HamanoSep 4, 2026
  15. Junio C HamanoSep 5, 2026
  16. 0/2 cherry-pick: document that --no-commit skips CHERRY_PICK_HEADAleksei Sviridkin, Sep 5, 2026
  17. 1/2 t3507: check no CHERRY_PICK_HEAD after conflicting --no-commitAleksei Sviridkin, Sep 5, 2026
  18. 2/2 doc: cherry-pick: note --no-commit skips CHERRY_PICK_HEADAleksei Sviridkin, Sep 5, 2026
  19. Aleksei SviridkinSep 5, 2026
  20. Aleksei SviridkinSep 5, 2026
  21. Aleksei SviridkinSep 5, 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.