ref-cache: rename `remove_entry()` to `remove_entry_from_dir()`
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>
Michael Haggerty committed
Apr 16, 2017 at 08:41 UTC
9fc3b06311f5a56b1933f046b06b3be22c17069b
1 file changed
+2
-2
refs/files-backend.c
+2
-2
@@ -413,7 +413,7 @@ static struct ref_entry *find_ref_entry(struct ref_dir *dir, const char *refname
413
* empty by the removal. dir must represent the top-level directory
414
* and must already be complete.
415
*/
416
-static int remove_entry(struct ref_dir *dir, const char *refname)
416
+static int remove_entry_from_dir(struct ref_dir *dir, const char *refname)
417
{
418
int refname_len = strlen(refname);
419
int entry_index;
@@ -2335,7 +2335,7 @@ static int repack_without_refs(struct files_ref_store *refs,
2335
2336
/* Remove refnames from the cache */
2337
for_each_string_list_item(refname, refnames)
2338
- if (remove_entry(packed, refname->string) != -1)
2338
+ if (remove_entry_from_dir(packed, refname->string) != -1)
2339
removed = 1;
2340
if (!removed) {
2341
/*