Add a "checkout-cache" command which does what the name suggests.
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index a23ad51ae0b5be6b09af7032ad05aaaa3617854f..0038e8b8e04b287ec876594cbab9df4af09ce131 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -71,9 +71,17 @@ unsigned int active_nr, active_alloc;
 
 #define alloc_nr(x) (((x)+16)*3/2)
 
-/* Initialize the cache information */
+/* Initialize and use the cache information */
 extern int read_cache(void);
 extern int cache_name_pos(const char *name, int namelen);
+extern int cache_match_stat(struct cache_entry *ce, struct stat *st);
+
+#define MTIME_CHANGED  0x0001
+#define CTIME_CHANGED  0x0002
+#define OWNER_CHANGED  0x0004
+#define MODE_CHANGED    0x0008
+#define INODE_CHANGED   0x0010
+#define DATA_CHANGED    0x0020
 
 /* Return a statically allocated filename matching the sha1 signature */
 extern char *sha1_file_name(unsigned char *sha1);