Skip to content

Commit 86f4235

Browse files
mhaggergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5c7bba7 commit 86f4235

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
@@ -524,7 +524,7 @@ static void loose_fill_ref_dir(struct ref_store *ref_store,
524524
}
525525
}
526526

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)
528528
{
529529
if (!refs->loose) {
530530
/*
@@ -1110,7 +1110,7 @@ static struct ref_iterator *files_ref_iterator_begin(
11101110
* date with what is on disk, and re-reads it if not.
11111111
*/
11121112

1113-
loose_dir = get_loose_refs(refs);
1113+
loose_dir = get_loose_ref_dir(refs);
11141114

11151115
if (prefix && *prefix)
11161116
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)
15811581
lock_packed_refs(refs, LOCK_DIE_ON_ERROR);
15821582
cbdata.packed_refs = get_packed_refs(refs);
15831583

1584-
do_for_each_entry_in_dir(get_loose_refs(refs),
1584+
do_for_each_entry_in_dir(get_loose_ref_dir(refs),
15851585
pack_if_possible_fn, &cbdata);
15861586

15871587
if (commit_packed_refs(refs))

0 commit comments

Comments
 (0)