Re: [PATCH] show-ref: add --unresolved option
- From
Jeff King <peff@peff.net>
- Date
- Mar 6, 2024, 00:33 UTC
- Message-ID
- <20240306003343.GA3797463@coredump.intra.peff.net>
- In-Reply-To
- <a3de2b7b-4603-4604-a4d2-938a598e312e@gmail.com>
On Tue, Mar 05, 2024 at 03:30:35PM +0000, Phillip Wood wrote:
Show 14 quoted lines
> Hi John > > On 04/03/2024 22:51, John Cai via GitGitGadget wrote: > > From: John Cai <johncai86@gmail.com> > > > > 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