]> git.ipfire.org Git - thirdparty/git.git/commit
refs: add TRANSACTION_CREATE_EXISTS error
authorBence Ferdinandy <bence@ferdinandy.com>
Fri, 22 Nov 2024 12:28:48 +0000 (13:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Nov 2024 02:46:36 +0000 (11:46 +0900)
commited2f6f8804cc142a02c701e808d110223b0256f8
tree2a6ab1d8da95b7794b8d59b080c8ee0753f08722
parentdfe86fa06bdc46f1e5bf1f55e8571bb9a088d20c
refs: add TRANSACTION_CREATE_EXISTS error

Currently there is only one special error for transaction, for when
there is a naming conflict, all other errors are dumped under a generic
error. Add a new special error case for when the caller requests the
reference to be updated only when it does not yet exist and the
reference actually does exist.

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