diff options
author | Elijah Newren <newren@gmail.com> | 2023-04-22 23:17:21 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-04-24 22:47:32 +0300 |
commit | aabc5617cdfb29ccf98048b0d99cae2a811df51f (patch) | |
tree | 67c5ee64fe359a96c8e4c6aa69e8ad7ced317252 /cache.h | |
parent | d1cbe1e6d8a9cab2b4ffe8a17d34db214dce1e49 (diff) |
cache,tree: move cmp_cache_name_compare from tree.[ch] to read-cache.c
Since cmp_cache_name_compare() was comparing cache_entry structs, it
was associated with the cache rather than with trees. Move the
function. As a side effect, we can make cache_name_stage_compare()
static as well.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -562,7 +562,7 @@ int base_name_compare(const char *name1, size_t len1, int mode1, int df_name_compare(const char *name1, size_t len1, int mode1, const char *name2, size_t len2, int mode2); int name_compare(const char *name1, size_t len1, const char *name2, size_t len2); -int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2); +int cmp_cache_name_compare(const void *a_, const void *b_); /* add */ /* |