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/