From: Junio C Hamano Date: Wed, 17 Jun 2026 12:11:20 GMT Subject: Re: [PATCH 3/4] builtin/refs: add "update" subcommand Message-ID: In-Reply-To: Patrick Steinhardt writes: > 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.