aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2006-01-26 01:13:36 -0500
committerJunio C Hamano <junkio@cox.net>2006-01-26 01:08:29 -0800
commit521698b1538fb3c9bd818ee98f2c17d2c80c9605 (patch)
tree0162088be261b4880ac40bda405f81cb9cebbdd9 /cache.h
parent731043fd4d55b1561ebb5a53daa4b9ff6dfac046 (diff)
downloadgit-521698b1538fb3c9bd818ee98f2c17d2c80c9605.tar.gz
git-521698b1538fb3c9bd818ee98f2c17d2c80c9605.tar.xz
Only use a single parser for tree objects
This makes read_tree_recursive and read_tree take a struct tree instead of a buffer. It also move the declaration of read_tree into tree.h (where struct tree is defined), and updates ls-tree and diff-index (the only places that presently use read_tree*()) to use the new versions. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/cache.h b/cache.h
index b493b65b7..1e8e27f7b 100644
--- a/cache.h
+++ b/cache.h
@@ -209,9 +209,6 @@ extern char *write_sha1_file_prepare(void *buf,
extern int check_sha1_signature(const unsigned char *sha1, void *buf, unsigned long size, const char *type);
-/* Read a tree into the cache */
-extern int read_tree(void *buffer, unsigned long size, int stage, const char **paths);
-
extern int write_sha1_from_fd(const unsigned char *sha1, int fd, char *buffer,
size_t bufsize, size_t *bufposn);
extern int write_sha1_to_fd(int fd, const unsigned char *sha1);