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

[PATCH 0/2] show-ref --verify: accept psuedorefs

From
PGPhillip Wood via GitGitGadget <gitgitgadget@gmail.com>
Date
Feb 7, 2024, 16:44 UTC
Message-ID
<pull.1654.git.1707324277.gitgitgadget@gmail.com>
Running
git show-ref --verify CHERRY_PICK_HEAD
will always result in
fatal: 'CHERRY_PICK_HEAD' - not a valid ref

even when CHERRY_PICK_HEAD exists. The first patch in this series fixes that and the second patch then replaces some instances of "git rev-parse " with "git show-ref --verify " in our test suite.

Phillip Wood (2):
  show-ref --verify: accept pseudorefs
  t1400: use show-ref to check pseudorefs
 builtin/show-ref.c    |  2 +-
 t/t1400-update-ref.sh | 18 +++++++++---------
 t/t1403-show-ref.sh   |  8 ++++++++
 3 files changed, 18 insertions(+), 10 deletions(-)
base-commit: 2a540e432fe5dff3cfa9d3bf7ca56db2ad12ebb9
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1654%2Fphillipwood%2Fshow-ref-pseudorefs-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1654/phillipwood/show-ref-pseudorefs-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1654
-- 
gitgitgadget
Next: Phillip Wood via GitGitGadget
Message 1 of 6 in “show-ref --verify: accept psuedorefs”
  1. 0/2 show-ref --verify: accept psuedorefsPhillip Wood via GitGitGadget, Feb 7, 2024
  2. 1/2 show-ref --verify: accept pseudorefsPhillip Wood via GitGitGadget, Feb 7, 2024
  3. Junio C HamanoFeb 7, 2024
  4. Patrick SteinhardtFeb 8, 2024
  5. phillip.wood123@gmail.comFeb 8, 2024
  6. 2/2 t1400: use show-ref to check pseudorefsPhillip Wood via GitGitGadget, Feb 7, 2024

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.