Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
ref-cache: rename `remove_entry()` to `remove_entry_from_dir()`
author
Michael Haggerty
<mhagger@alum.mit.edu>
Sun, 16 Apr 2017 06:41:30 +0000
(08:41 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 17 Apr 2017 04:32:45 +0000
(21:32 -0700)
This function's visibility is about to be increased, so give it a more
distinctive name.
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 (parent:
bc1c696
)
diff --git
a/refs/files-backend.c
b/refs/files-backend.c
index 6e08bc798c470ebaa61359416f53a5ee99165ed8..f980af24200fdec04774574043e1b2b9491aa057 100644
(file)
--- a/
refs/files-backend.c
+++ b/
refs/files-backend.c
@@
-413,7
+413,7
@@
static struct ref_entry *find_ref_entry(struct ref_dir *dir, const char *refname
* empty by the removal. dir must represent the top-level directory
* and must already be complete.
*/
* empty by the removal. dir must represent the top-level directory
* and must already be complete.
*/
-static int remove_entry(struct ref_dir *dir, const char *refname)
+static int remove_entry
_from_dir
(struct ref_dir *dir, const char *refname)
{
int refname_len = strlen(refname);
int entry_index;
{
int refname_len = strlen(refname);
int entry_index;
@@
-2335,7
+2335,7
@@
static int repack_without_refs(struct files_ref_store *refs,
/* Remove refnames from the cache */
for_each_string_list_item(refname, refnames)
/* Remove refnames from the cache */
for_each_string_list_item(refname, refnames)
- if (remove_entry(packed, refname->string) != -1)
+ if (remove_entry
_from_dir
(packed, refname->string) != -1)
removed = 1;
if (!removed) {
/*
removed = 1;
if (!removed) {
/*