Skip to content

Commit 70912f6

Browse files
newrengitster
authored andcommitted
tree: enable cmp_cache_name_compare() to be used elsewhere
Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6681ce5 commit 70912f6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ int read_tree_recursive(struct repository *r,
144144
return ret;
145145
}
146146

147-
static int cmp_cache_name_compare(const void *a_, const void *b_)
147+
int cmp_cache_name_compare(const void *a_, const void *b_)
148148
{
149149
const struct cache_entry *ce1, *ce2;
150150

tree.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ void free_tree_buffer(struct tree *tree);
2828
/* Parses and returns the tree in the given ent, chasing tags and commits. */
2929
struct tree *parse_tree_indirect(const struct object_id *oid);
3030

31+
int cmp_cache_name_compare(const void *a_, const void *b_);
32+
3133
#define READ_TREE_RECURSIVE 1
3234
typedef int (*read_tree_fn_t)(const struct object_id *, struct strbuf *, const char *, unsigned int, int, void *);
3335

0 commit comments

Comments
 (0)