diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-04-16 08:41:30 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-16 21:32:45 -0700 |
commit | 9fc3b06311f5a56b1933f046b06b3be22c17069b (patch) | |
tree | c70dc7a533ce1ee6304449f016f6ff7ec4c73c73 /refs | |
parent | bc1c696e893248d02a69d7ee4a7de5c45b5b93e0 (diff) | |
download | git-9fc3b06311f5a56b1933f046b06b3be22c17069b.tar.gz |
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>
Diffstat (limited to 'refs')
-rw-r--r-- | refs/files-backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c index 6e08bc798c..f980af2420 100644 --- 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. */ -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; @@ -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) - if (remove_entry(packed, refname->string) != -1) + if (remove_entry_from_dir(packed, refname->string) != -1) removed = 1; if (!removed) { /* |