refs: rename is_pseudoref() to is_root_ref()
Rename `is_pseudoref()` to `is_root_ref()` to adapt to the newly defined terminology in our gitglossary(7). Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
74b50a5881
commit
f6936e62a5
@ -351,7 +351,7 @@ static void add_pseudoref_and_head_entries(struct ref_store *ref_store,
|
||||
strbuf_addstr(&refname, de->d_name);
|
||||
|
||||
dtype = get_dtype(de, &path, 1);
|
||||
if (dtype == DT_REG && (is_pseudoref(ref_store, de->d_name) ||
|
||||
if (dtype == DT_REG && (is_root_ref(ref_store, de->d_name) ||
|
||||
is_headref(ref_store, de->d_name)))
|
||||
loose_fill_ref_dir_regular_file(refs, refname.buf, dir);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user