]> git.ipfire.org Git - thirdparty/git.git/commit
refs: move REF_LOG_ONLY to refs-internal.h
authorHan-Wen Nienhuys <hanwen@google.com>
Fri, 28 Aug 2020 15:25:33 +0000 (15:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Sep 2020 22:51:07 +0000 (15:51 -0700)
commit63c056736544c8273dc6dc4275c2f2857bbaee44
tree64eb6bc50118ed905a0ffb05688cd746b4a09f4f
parent3a238e539bcdfe3f9eb5010fd218640c1b499f7a
refs: move REF_LOG_ONLY to refs-internal.h

REF_LOG_ONLY is used in the transaction preparation: if a symref is involved in
a transaction, the referent of the symref should be updated, and the symref
itself should only be updated in the reflog.

Other ref backends will need to duplicate this logic too, so move it to a
central place.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c
refs/refs-internal.h