From: Philip Oakley Date: Fri, 31 Dec 2021 17:16:43 GMT Subject: Re: bug: git name-rev --stdin --no-undefined on detached head Message-ID: <9b13b1d1-8e0f-b5c9-ad66-7a0e63eb0b13@iee.email> In-Reply-To: Thanks you for the example.. On 24/12/2021 19:42, Junio C Hamano wrote: > * The sample input was produced with > > $ cat >sample.txt < 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/