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

Re: [PATCH 2/3] Treat CHERRY_PICK_HEAD as a pseudo ref

From
Han-Wen Nienhuys <hanwen@google.com>
Date
Aug 19, 2020, 15:04 UTC
Message-ID
<CAFQ2z_PYpP4WdUaaG4=fOQ_7RLLmGLjuBQaE2yQVA9=7j9XcuQ@mail.gmail.com>
In-Reply-To
<xmqqsgcjwtpv.fsf@gitster.c.googlers.com>
On Tue, Aug 18, 2020 at 11:05 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 13 quoted lines
>
> "Han-Wen Nienhuys via GitGitGadget" <gitgitgadget@gmail.com> writes:
>
> > From: Han-Wen Nienhuys <hanwen@google.com>
> >
> > Check for existence and delete CHERRY_PICK_HEAD through ref functions.
> > This will help cherry-pick work with alternate ref storage backends.
>
> These two sentences are true, but this patch does another thing that
> is not advertised here.  It stops recommending removal of
> CHERRY_PICK_HEAD from the filesystem with "rm" (or using "git
> update-ref -d" for that matter) as a way to avoid recording the
> current commit as a cherry-pick.
..
> Does "git cherry-pick --abort" only remove CHERRY_PICK_HEAD without
> doing any other damage to the working tree files and to the index?

Good catch. I just added cherry-pick --abort without much thinking. I reverted to update-ref -d which should be equivalent to what is currently recommended.

-- 
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--

Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg

Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 23 in “Use refs API for handling sundry pseudorefs”
  1. 0/3 Use refs API for handling sundry pseudorefsHan-Wen Nienhuys via GitGitGadget, Aug 18, 2020
  2. 1/3 Make refs_ref_exists publicHan-Wen Nienhuys via GitGitGadget, Aug 18, 2020
  3. Junio C HamanoAug 18, 2020
  4. 2/3 Treat CHERRY_PICK_HEAD as a pseudo refHan-Wen Nienhuys via GitGitGadget, Aug 18, 2020
  5. Junio C HamanoAug 18, 2020
  6. Han-Wen NienhuysAug 19, 2020
  7. Junio C HamanoAug 19, 2020
  8. 3/3 Treat REVERT_HEAD as a pseudo refHan-Wen Nienhuys via GitGitGadget, Aug 18, 2020
  9. Junio C HamanoAug 18, 2020
  10. Junio C HamanoAug 18, 2020
  11. 0/4 Use refs API for handling sundry pseudorefsHan-Wen Nienhuys via GitGitGadget, Aug 19, 2020
  12. 1/4 refs: make refs_ref_exists publicHan-Wen Nienhuys via GitGitGadget, Aug 19, 2020
  13. 2/4 sequencer: treat CHERRY_PICK_HEAD as a pseudo refHan-Wen Nienhuys via GitGitGadget, Aug 19, 2020
  14. 3/4 builtin/commit: suggest update-ref for pseudoref removalHan-Wen Nienhuys via GitGitGadget, Aug 19, 2020
  15. Junio C HamanoAug 19, 2020
  16. Han-Wen NienhuysAug 21, 2020
  17. 4/4 sequencer: treat REVERT_HEAD as a pseudo refHan-Wen Nienhuys via GitGitGadget, Aug 19, 2020
  18. 0/4 Use refs API for handling sundry pseudorefsHan-Wen Nienhuys via GitGitGadget, Aug 21, 2020
  19. 4/4 sequencer: treat REVERT_HEAD as a pseudo refHan-Wen Nienhuys via GitGitGadget, Aug 21, 2020
  20. 2/4 sequencer: treat CHERRY_PICK_HEAD as a pseudo refHan-Wen Nienhuys via GitGitGadget, Aug 21, 2020
  21. 1/4 refs: make refs_ref_exists publicHan-Wen Nienhuys via GitGitGadget, Aug 21, 2020
  22. 3/4 builtin/commit: suggest update-ref for pseudoref removalHan-Wen Nienhuys via GitGitGadget, Aug 21, 2020
  23. Junio C HamanoAug 21, 2020

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.