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

Re: bug: git name-rev --stdin --no-undefined on detached head

From
Philip Oakley <philipoakley@iee.email>
Date
Dec 31, 2021, 17:16 UTC
Message-ID
<9b13b1d1-8e0f-b5c9-ad66-7a0e63eb0b13@iee.email>
In-Reply-To
<xmqqk0ft3i3g.fsf@gitster.g>
Thanks you for the example..
On 24/12/2021 19:42, Junio C Hamano wrote:
Show 10 quoted lines
> * The sample input was produced with
>
>         $ cat >sample.txt <<EOF
>         A revision that exists $(git rev-parse --short HEAD) is shown here,
>         and its full name is $(git rev-parse HEAD)
>         while its tree object is $(git rev-parse HEAD:)
>         which probably is undescribable hexdigits.
>         EOF
>
> if you want to try it at home ;-)
The ` $(git rev-parse HEAD:) ` technique is serendipitous. 

I'd forgotten that was how to get the commit object's tree  for further investigation, as I'd need it for my `deadhead` query [1], as used regularly in the Git-for-Windows merging-rebase (see also [2]).

Philip [1] https://lore.kernel.org/git/be7ec330-2b2c-a01f-c7ca-e5e752493ee0@iee.email/ [2] https://lore.kernel.org/git/nycvar.QRO.7.76.6.2112101528200.90@tvgsbejvaqbjf.bet/

Previous: Junio C Hamano
Message 8 of 8 in “bug: git name-rev --stdin --no-undefined on detached head”
  1. Erik Cervin EdinDec 22, 2021
  2. John CaiDec 23, 2021
  3. John CaiDec 24, 2021
  4. Erik Cervin EdinDec 24, 2021
  5. Junio C HamanoDec 24, 2021
  6. John CaiDec 24, 2021
  7. Junio C HamanoDec 25, 2021
  8. Philip OakleyDec 31, 2021

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.