cache-tree.c: make cache_tree_find() static
This function is not used by any other file. Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
300072f486
commit
7ba04d9f37
@ -507,7 +507,7 @@ struct cache_tree *cache_tree_read(const char *buffer, unsigned long size)
|
|||||||
return read_one(&buffer, &size);
|
return read_one(&buffer, &size);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct cache_tree *cache_tree_find(struct cache_tree *it, const char *path)
|
static struct cache_tree *cache_tree_find(struct cache_tree *it, const char *path)
|
||||||
{
|
{
|
||||||
while (*path) {
|
while (*path) {
|
||||||
const char *slash;
|
const char *slash;
|
||||||
|
@ -28,8 +28,6 @@ struct cache_tree *cache_tree_read(const char *buffer, unsigned long size);
|
|||||||
int cache_tree_fully_valid(struct cache_tree *);
|
int cache_tree_fully_valid(struct cache_tree *);
|
||||||
int cache_tree_update(struct cache_tree *, struct cache_entry **, int, int, int);
|
int cache_tree_update(struct cache_tree *, struct cache_entry **, int, int, int);
|
||||||
|
|
||||||
struct cache_tree *cache_tree_find(struct cache_tree *, const char *);
|
|
||||||
|
|
||||||
#define WRITE_TREE_UNREADABLE_INDEX (-1)
|
#define WRITE_TREE_UNREADABLE_INDEX (-1)
|
||||||
#define WRITE_TREE_UNMERGED_INDEX (-2)
|
#define WRITE_TREE_UNMERGED_INDEX (-2)
|
||||||
#define WRITE_TREE_PREFIX_ERROR (-3)
|
#define WRITE_TREE_PREFIX_ERROR (-3)
|
||||||
|
Loading…
Reference in New Issue
Block a user