On Tue, Mar 05, 2024 at 03:30:35PM +0000, Phillip Wood wrote: > Hi John > > On 04/03/2024 22:51, John Cai via GitGitGadget wrote: > > From: John Cai <johncai86@xxxxxxxxx> > > > > For reftable development, it would be handy to have a tool to provide > > the direct value of any ref whether it be a symbolic ref or not. > > Currently there is git-symbolic-ref, which only works for symbolic refs, > > and git-rev-parse, which will resolve the ref. Let's add a --unresolved > > option that will only take one ref and return whatever it points to > > without dereferencing it. > > "--unresolved" makes me think of merge conflicts. I wonder if > "--no-dereference" would be clearer. We have "--no-deref" in "git update-ref" already. It is probably better to stay consistent. -Peff