diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-01-19 11:40:09 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-01-19 20:10:41 +0100 |
commit | fd7c6ffa9e118cdf18a3752ec456070ed0a22e3b (patch) | |
tree | 8ed2182341844aadbdcd481e396dbce854a2db02 /repository.c | |
parent | sequencer: delete REBASE_HEAD in correct repo when picking commits (diff) | |
download | git-fd7c6ffa9e118cdf18a3752ec456070ed0a22e3b.tar.xz git-fd7c6ffa9e118cdf18a3752ec456070ed0a22e3b.zip |
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>
Diffstat (limited to 'repository.c')
-rw-r--r-- | repository.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/repository.c b/repository.c index d7d24d416a..a931e3b1b3 100644 --- a/repository.c +++ b/repository.c @@ -263,7 +263,6 @@ static void repo_clear_path_cache(struct repo_path_cache *cache) FREE_AND_NULL(cache->merge_mode); FREE_AND_NULL(cache->merge_head); FREE_AND_NULL(cache->merge_autostash); - FREE_AND_NULL(cache->auto_merge); FREE_AND_NULL(cache->fetch_head); FREE_AND_NULL(cache->shallow); } |