Thread (47 messages) 47 messages, 3 authors, 8d ago

Re: [PATCH 3/4] builtin/refs: add "update" subcommand

From: Junio C Hamano <hidden>
Date: 2026-06-17 12:11:22

Patrick Steinhardt [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help