]> git.ipfire.org Git - thirdparty/git.git/commit - branch.c
refs: convert AUTO_MERGE to become a normal pseudo-ref
authorPatrick Steinhardt <ps@pks.im>
Fri, 19 Jan 2024 10:40:09 +0000 (11:40 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jan 2024 19:10:41 +0000 (11:10 -0800)
commitfd7c6ffa9e118cdf18a3752ec456070ed0a22e3b
tree8ed2182341844aadbdcd481e396dbce854a2db02
parentbb02e95f3b25d933272bcf9d6883828d26271f69
refs: convert AUTO_MERGE to become a normal pseudo-ref

In 70c70de616 (refs: complete list of special refs, 2023-12-14) we have
inrtoduced a new `is_special_ref()` function that classifies some refs
as being special. The rule is that special refs are exclusively read and
written via the filesystem directly, whereas normal refs exclucsively go
via the refs API.

The intent of that commit was to record the status quo so that we know
to route reads of such special refs consistently. Eventually, the list
should be reduced to its bare minimum of refs which really are special,
namely FETCH_HEAD and MERGE_HEAD.

Follow up on this promise and convert the AUTO_MERGE ref to become a
normal pseudo-ref by using the refs API to both read and write it
instead of accessing the filesystem directly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c
builtin/rebase.c
merge-ort.c
path.c
path.h
refs.c
repository.c
repository.h
sequencer.c