From: Jeff King Date: Wed, 06 Mar 2024 00:33:43 GMT Subject: Re: [PATCH] show-ref: add --unresolved option Message-ID: <20240306003343.GA3797463@coredump.intra.peff.net> In-Reply-To: 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 > > > > 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