Re: [PATCH 3/4] builtin/refs: add "update" subcommand
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 17, 2026, 12:11 UTC
- Message-ID
- <xmqqwlvxz7rr.fsf@gitster.g>
- In-Reply-To
- <ajJMnZchqdpiuKTg@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 7 quoted lines
> We can: > > $ git update-ref $NEW_OID $NULL_OID > $ git refs update $NEW_OID $NULL_OID > > This will verify that the reference doesn't exist before actually > writing it. Will add a test.
I think refname is missing from the command line, but the above is good. I forgot we had update-ref already doing that ;-)
Thanks.