summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-22 17:15:28 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-22 17:15:28 -0700
commitb5af9107270171b79d46b099ee0b198e653f3a24 (patch)
tree8284e5e732d110051beb6281e423488b74ee7593 /cache.h
parent94537c78a82619b2625cb827ec0094703579bfed (diff)
downloadgit-b5af9107270171b79d46b099ee0b198e653f3a24.tar.gz
New "diff-cache" implementation.
This one is about a million times simpler, and much more likely to be correct too. Instead of trying to match up a tree object against the index, we just read in the tree object side-by-side into the index, and just walk the resulting index file. This was what all the read-tree cleanups were all getting to.
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 69dc877655..bf30ac4741 100644
--- a/cache.h
+++ b/cache.h
@@ -99,7 +99,9 @@ extern int read_cache(void);
extern int write_cache(int newfd, struct cache_entry **cache, int entries);
extern int cache_name_pos(const char *name, int namelen);
extern int add_cache_entry(struct cache_entry *ce, int ok_to_add);
+extern int remove_entry_at(int pos);
extern int remove_file_from_cache(char *path);
+extern int same_name(struct cache_entry *a, struct cache_entry *b);
extern int cache_match_stat(struct cache_entry *ce, struct stat *st);
#define MTIME_CHANGED 0x0001