aboutsummaryrefslogtreecommitdiffstats
path: root/tree.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-04-22 20:17:21 +0000
committerJunio C Hamano <gitster@pobox.com>2023-04-24 12:47:32 -0700
commitaabc5617cdfb29ccf98048b0d99cae2a811df51f (patch)
tree67c5ee64fe359a96c8e4c6aa69e8ad7ced317252 /tree.h
parenthash-ll.h: split out of hash.h to remove dependency on repository.h (diff)
downloadgit-aabc5617cdfb29ccf98048b0d99cae2a811df51f.tar.gz
git-aabc5617cdfb29ccf98048b0d99cae2a811df51f.zip
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 'tree.h')
-rw-r--r--tree.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/tree.h b/tree.h
index 0499ad01aa..8e3c6d441c 100644
--- a/tree.h
+++ b/tree.h
@@ -29,7 +29,6 @@ void free_tree_buffer(struct tree *tree);
/* Parses and returns the tree in the given ent, chasing tags and commits. */
struct tree *parse_tree_indirect(const struct object_id *oid);
-int cmp_cache_name_compare(const void *a_, const void *b_);
#define READ_TREE_RECURSIVE 1
typedef int (*read_tree_fn_t)(const struct object_id *, struct strbuf *, const char *, unsigned int, void *);