Re: [PATCH v13 7/9] refs: add create_only option to refs_update_symref_extended
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 19, 2024, 02:54 UTC
- Message-ID
- <xmqqh684exw3.fsf@gitster.g>
- In-Reply-To
- <20241118151755.756265-8-bence@ferdinandy.com>
Bence Ferdinandy <bence@ferdinandy.com> writes:
> 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.
Because it is not even an error, from the point of view of "create only if it does not exist", checking the current condition and finding that there already is one, this makes perfect sense.