From: Kristoffer Haugsbakk Date: Tue, 05 Mar 2024 17:01:01 GMT Subject: Re: [PATCH] show-ref: add --unresolved option Message-ID: <177596a5-dae3-4fb1-902e-7ad74a678ff1@app.fastmail.com> In-Reply-To: On Tue, Mar 5, 2024, at 16:30, 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. Yeah, a `--no`-style option looks more consistent.