diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-04-16 08:41:29 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-16 21:32:45 -0700 |
commit | bc1c696e893248d02a69d7ee4a7de5c45b5b93e0 (patch) | |
tree | c51feb092999558899da74b7bb1913ae5f97afc9 /refs | |
parent | a3ade2baba958d758b4b808e466bb8367e81e168 (diff) | |
download | git-bc1c696e893248d02a69d7ee4a7de5c45b5b93e0.tar.gz git-bc1c696e893248d02a69d7ee4a7de5c45b5b93e0.tar.xz |
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 <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-rw-r--r-- | refs/files-backend.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c index 05029d43b..6e08bc798 100644 --- a/refs/files-backend.c +++ b/refs/files-backend.c @@ -385,7 +385,7 @@ static struct ref_dir *find_containing_dir(struct ref_dir *dir, * and recursing into subdirectories as necessary. If the name is not * found or it corresponds to a directory entry, return NULL. */ -static struct ref_entry *find_ref(struct ref_dir *dir, const char *refname) +static struct ref_entry *find_ref_entry(struct ref_dir *dir, const char *refname) { int entry_index; struct ref_entry *entry; @@ -1226,7 +1226,7 @@ static struct ref_dir *get_loose_refs(struct files_ref_store *refs) static struct ref_entry *get_packed_ref(struct files_ref_store *refs, const char *refname) { - return find_ref(get_packed_refs(refs), refname); + return find_ref_entry(get_packed_refs(refs), refname); } /* @@ -2168,7 +2168,7 @@ static int pack_if_possible_fn(struct ref_entry *entry, void *cb_data) if (peel_status != PEEL_PEELED && peel_status != PEEL_NON_TAG) die("internal error peeling reference %s (%s)", entry->name, oid_to_hex(&entry->u.value.oid)); - packed_entry = find_ref(cb->packed_refs, entry->name); + packed_entry = find_ref_entry(cb->packed_refs, entry->name); if (packed_entry) { /* Overwrite existing packed entry with info from loose entry */ packed_entry->flag = REF_ISPACKED | REF_KNOWS_PEELED; |