summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2017-04-16 06:41:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-04-17 04:32:46 (GMT)
commit86f423584bd2332580de8baa19d6b661bb3d330c (patch)
treec8f2f18f8e0ae888ea950be1fe5d70cc64a0ca56 /refs
parent5c7bba77b261f0b5979bacf3cb2516baf211d6f5 (diff)
downloadgit-86f423584bd2332580de8baa19d6b661bb3d330c.zip
git-86f423584bd2332580de8baa19d6b661bb3d330c.tar.gz
git-86f423584bd2332580de8baa19d6b661bb3d330c.tar.bz2
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>
Diffstat (limited to 'refs')
-rw-r--r--refs/files-backend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c
index c0550ad..3beab0b 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -524,7 +524,7 @@ static void loose_fill_ref_dir(struct ref_store *ref_store,
}
}
-static struct ref_dir *get_loose_refs(struct files_ref_store *refs)
+static struct ref_dir *get_loose_ref_dir(struct files_ref_store *refs)
{
if (!refs->loose) {
/*
@@ -1110,7 +1110,7 @@ static struct ref_iterator *files_ref_iterator_begin(
* date with what is on disk, and re-reads it if not.
*/
- loose_dir = get_loose_refs(refs);
+ loose_dir = get_loose_ref_dir(refs);
if (prefix && *prefix)
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)
lock_packed_refs(refs, LOCK_DIE_ON_ERROR);
cbdata.packed_refs = get_packed_refs(refs);
- do_for_each_entry_in_dir(get_loose_refs(refs),
+ do_for_each_entry_in_dir(get_loose_ref_dir(refs),
pack_if_possible_fn, &cbdata);
if (commit_packed_refs(refs))