cache,tree: move cmp_cache_name_compare from tree.[ch] to read-cache.c
commitaabc5617cdfb29ccf98048b0d99cae2a811df51f
authorElijah Newren <newren@gmail.com>
Sat, 22 Apr 2023 20:17:21 +0000 (22 20:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Apr 2023 19:47:32 +0000 (24 12:47 -0700)
tree67c5ee64fe359a96c8e4c6aa69e8ad7ced317252
parentd1cbe1e6d8a9cab2b4ffe8a17d34db214dce1e49
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>
cache.h
read-cache.c
tree.c
tree.h