get_loose_ref_dir(): function renamed from get_loose_refs()
The new name is more analogous to `get_packed_ref_dir()`. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael Haggerty committed
Apr 16, 2017 at 08:41 UTC
86f423584bd2332580de8baa19d6b661bb3d330c
1 file changed
+3
-3
refs/files-backend.c
+3
-3
@@ -524,7 +524,7 @@ static void loose_fill_ref_dir(struct ref_store *ref_store,
524
}
525
}
526
527
-static struct ref_dir *get_loose_refs(struct files_ref_store *refs)
527
+static struct ref_dir *get_loose_ref_dir(struct files_ref_store *refs)
528
{
529
if (!refs->loose) {
530
/*
@@ -1110,7 +1110,7 @@ static struct ref_iterator *files_ref_iterator_begin(
1110
* date with what is on disk, and re-reads it if not.
1111
*/
1112
1113
- loose_dir = get_loose_refs(refs);
1113
+ loose_dir = get_loose_ref_dir(refs);
1114
1115
if (prefix && *prefix)
1116
loose_dir = find_containing_dir(loose_dir, prefix, 0);
@@ -1581,7 +1581,7 @@ static int files_pack_refs(struct ref_store *ref_store, unsigned int flags)
1581
lock_packed_refs(refs, LOCK_DIE_ON_ERROR);
1582
cbdata.packed_refs = get_packed_refs(refs);
1583
1584
- do_for_each_entry_in_dir(get_loose_refs(refs),
1584
+ do_for_each_entry_in_dir(get_loose_ref_dir(refs),
1585
pack_if_possible_fn, &cbdata);
1586
1587
if (commit_packed_refs(refs))