cache,tree: move basic name compare functions from read-cache to tree
commit53dca334d6c56488994c0c80a247707419cddbfc
authorElijah Newren <newren@gmail.com>
Sat, 22 Apr 2023 20:17:22 +0000 (22 20:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Apr 2023 19:47:32 +0000 (24 12:47 -0700)
treea3cd64586be1895f70bbb3ec7d11d5c20fe8a623
parentaabc5617cdfb29ccf98048b0d99cae2a811df51f
cache,tree: move basic name compare functions from read-cache to tree

None of base_name_compare(), df_name_compare(), or name_compare()
depended upon a cache_entry or index_state in any way.  By moving these
functions to tree.h, half a dozen other files can stop depending upon
cache.h (though that change will be made in a later commit).

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