Skip to content

Commit 9fc3b06

Browse files
mhaggergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bc1c696 commit 9fc3b06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

refs/files-backend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ static struct ref_entry *find_ref_entry(struct ref_dir *dir, const char *refname
413413
* empty by the removal. dir must represent the top-level directory
414414
* and must already be complete.
415415
*/
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)
417417
{
418418
int refname_len = strlen(refname);
419419
int entry_index;
@@ -2335,7 +2335,7 @@ static int repack_without_refs(struct files_ref_store *refs,
23352335

23362336
/* Remove refnames from the cache */
23372337
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)
23392339
removed = 1;
23402340
if (!removed) {
23412341
/*

0 commit comments

Comments
 (0)