entry_resolves_to_object(): rename function from ref_resolves_to_object()

Free up the old name for a more general purpose. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Haggerty committed Jun 18, 2016 at 06:15 UTC ffeef642310f00bc43341bcb9eeadf06e0fd5904
1 file changed +3 -3
refs/files-backend.c
+3 -3
@@ -517,7 +517,7 @@ static void sort_ref_dir(struct ref_dir *dir)
517 * an object in the database. Emit a warning if the referred-to
518 * object does not exist.
519 */
520 -static int ref_resolves_to_object(struct ref_entry *entry)
520 +static int entry_resolves_to_object(struct ref_entry *entry)
521 {
522 if (entry->flag & REF_ISBROKEN)
523 return 0;
@@ -563,7 +563,7 @@ static int do_one_ref(struct ref_entry *entry, void *cb_data)
563 return 0;
564
565 if (!(data->flags & DO_FOR_EACH_INCLUDE_BROKEN) &&
566 - !ref_resolves_to_object(entry))
566 + !entry_resolves_to_object(entry))
567 return 0;
568
569 /* Store the old value, in case this is a recursive call: */
@@ -2228,7 +2228,7 @@ static int pack_if_possible_fn(struct ref_entry *entry, void *cb_data)
2228 return 0;
2229
2230 /* Do not pack symbolic or broken refs: */
2231 - if ((entry->flag & REF_ISSYMREF) || !ref_resolves_to_object(entry))
2231 + if ((entry->flag & REF_ISSYMREF) || !entry_resolves_to_object(entry))
2232 return 0;
2233
2234 /* Add a packed ref cache entry equivalent to the loose entry. */