summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 300072f)
raw | patch | inline | side by side (parent: 300072f)
author | Nanako Shiraishi <nanako3@lavabit.com> | |
Wed, 16 Jul 2008 10:42:10 +0000 (19:42 +0900) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Jul 2008 15:50:27 +0000 (08:50 -0700) |
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>
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache-tree.c | patch | blob | history | |
cache-tree.h | patch | blob | history |
diff --git a/cache-tree.c b/cache-tree.c
index 73cb3407077275f82677839d2c9e794c12833c95..5f8ee87bb1c446341b640c2f978a658d6bfcfcd0 100644 (file)
--- a/cache-tree.c
+++ b/cache-tree.c
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) {
const char *slash;
diff --git a/cache-tree.h b/cache-tree.h
index 44aad426d319b83eda013e115f35e066cc590cb8..cf8b790874c4a4f5890b360c237ccdd4a5a03de4 100644 (file)
--- a/cache-tree.h
+++ b/cache-tree.h
int cache_tree_fully_valid(struct cache_tree *);
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_UNMERGED_INDEX (-2)
#define WRITE_TREE_PREFIX_ERROR (-3)