Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
get_loose_ref_dir(): function renamed from get_loose_refs()
author
Michael Haggerty
<mhagger@alum.mit.edu>
Sun, 16 Apr 2017 06:41:37 +0000
(08:41 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 17 Apr 2017 04:32:46 +0000
(21:32 -0700)
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>
refs/files-backend.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (from parent 1:
5c7bba7
)
diff --git
a/refs/files-backend.c
b/refs/files-backend.c
index c0550ad9d6c327e3952ae99ffa3f960f55211f17..3beab0b752dc3ddb73a45536a24bb65dd7d5847e 100644
(file)
--- 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_ref
s
(struct files_ref_store *refs)
+static struct ref_dir *get_loose_ref
_dir
(struct files_ref_store *refs)
{
if (!refs->loose) {
/*
{
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.
*/
* date with what is on disk, and re-reads it if not.
*/
- loose_dir = get_loose_ref
s
(refs);
+ loose_dir = get_loose_ref
_dir
(refs);
if (prefix && *prefix)
loose_dir = find_containing_dir(loose_dir, prefix, 0);
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);
lock_packed_refs(refs, LOCK_DIE_ON_ERROR);
cbdata.packed_refs = get_packed_refs(refs);
- do_for_each_entry_in_dir(get_loose_ref
s
(refs),
+ do_for_each_entry_in_dir(get_loose_ref
_dir
(refs),
pack_if_possible_fn, &cbdata);
if (commit_packed_refs(refs))
pack_if_possible_fn, &cbdata);
if (commit_packed_refs(refs))