]> git.ipfire.org Git - thirdparty/git.git/commit
refs: add create_only option to refs_update_symref_extended
authorBence Ferdinandy <bence@ferdinandy.com>
Fri, 22 Nov 2024 12:28:49 +0000 (13:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Nov 2024 02:46:36 +0000 (11:46 +0900)
commit9963746c841dc786529827b7b6755d0a3e208ad4
tree166b1ceddff829fc5f7f46e77f6ee714442cd824
parented2f6f8804cc142a02c701e808d110223b0256f8
refs: add create_only option to refs_update_symref_extended

Allow the caller to specify that it only wants to update the symref if
it does not already exist. Silently ignore the error from the
transaction API if the symref already exists.

Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c
refs.c
refs.h