summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@ppc970.osdl.org>2005-04-10 14:03:58 -0700
committerLibravatar Linus Torvalds <torvalds@ppc970.osdl.org>2005-04-10 14:03:58 -0700
commit73134b6d3f700bb9e6c66aa2f099de644c6b8d09 (patch)
tree5588456a03dc45bc5cc026a7e61ecb86bdd10c38 /cache.h
parentMake "update-cache" a bit friendlier to use (and harder to mis-use). (diff)
downloadtgif-73134b6d3f700bb9e6c66aa2f099de644c6b8d09.tar.xz
Add "-R" flag to "diff-tree", so that it will recursively traverse a tree of trees
as it diffs them. This makes diff-tree usable again in the new world order.
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cache.h b/cache.h
index 1e006bfa56..4b101188d7 100644
--- a/cache.h
+++ b/cache.h
@@ -87,15 +87,15 @@ extern int cache_match_stat(struct cache_entry *ce, struct stat *st);
#define DATA_CHANGED 0x0020
/* Return a statically allocated filename matching the sha1 signature */
-extern char *sha1_file_name(unsigned char *sha1);
+extern char *sha1_file_name(const unsigned char *sha1);
/* Write a memory buffer out to the sha file */
-extern int write_sha1_buffer(unsigned char *sha1, void *buf, unsigned int size);
+extern int write_sha1_buffer(const unsigned char *sha1, void *buf, unsigned int size);
/* Read and unpack a sha1 file into memory, write memory to a sha1 file */
-extern void * map_sha1_file(unsigned char *sha1, unsigned long *size);
+extern void * map_sha1_file(const unsigned char *sha1, unsigned long *size);
extern void * unpack_sha1_file(void *map, unsigned long mapsize, char *type, unsigned long *size);
-extern void * read_sha1_file(unsigned char *sha1, char *type, unsigned long *size);
+extern void * read_sha1_file(const unsigned char *sha1, char *type, unsigned long *size);
extern int write_sha1_file(char *buf, unsigned len, unsigned char *return_sha1);
extern int check_sha1_signature(unsigned char *sha1, void *buf, unsigned long size);