Skip to content

Commit bc1c696

Browse files
mhaggergitster
authored andcommitted
ref-cache: rename find_ref() to find_ref_entry()
This function's visibility is about to be increased, so give it a more distinctive name. Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a3ade2b commit bc1c696

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

refs/files-backend.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ static struct ref_dir *find_containing_dir(struct ref_dir *dir,
385385
* and recursing into subdirectories as necessary. If the name is not
386386
* found or it corresponds to a directory entry, return NULL.
387387
*/
388-
static struct ref_entry *find_ref(struct ref_dir *dir, const char *refname)
388+
static struct ref_entry *find_ref_entry(struct ref_dir *dir, const char *refname)
389389
{
390390
int entry_index;
391391
struct ref_entry *entry;
@@ -1226,7 +1226,7 @@ static struct ref_dir *get_loose_refs(struct files_ref_store *refs)
12261226
static struct ref_entry *get_packed_ref(struct files_ref_store *refs,
12271227
const char *refname)
12281228
{
1229-
return find_ref(get_packed_refs(refs), refname);
1229+
return find_ref_entry(get_packed_refs(refs), refname);
12301230
}
12311231

12321232
/*
@@ -2168,7 +2168,7 @@ static int pack_if_possible_fn(struct ref_entry *entry, void *cb_data)
21682168
if (peel_status != PEEL_PEELED && peel_status != PEEL_NON_TAG)
21692169
die("internal error peeling reference %s (%s)",
21702170
entry->name, oid_to_hex(&entry->u.value.oid));
2171-
packed_entry = find_ref(cb->packed_refs, entry->name);
2171+
packed_entry = find_ref_entry(cb->packed_refs, entry->name);
21722172
if (packed_entry) {
21732173
/* Overwrite existing packed entry with info from loose entry */
21742174
packed_entry->flag = REF_ISPACKED | REF_KNOWS_PEELED;

0 commit comments

Comments
 (0)