summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-10 21:03:58 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-10 21:03:58 (GMT)
commit73134b6d3f700bb9e6c66aa2f099de644c6b8d09 (patch)
tree5588456a03dc45bc5cc026a7e61ecb86bdd10c38 /cache.h
parent121481abf8d752ef871821d4ab9a3747595d86ae (diff)
downloadgit-73134b6d3f700bb9e6c66aa2f099de644c6b8d09.zip
git-73134b6d3f700bb9e6c66aa2f099de644c6b8d09.tar.gz
git-73134b6d3f700bb9e6c66aa2f099de644c6b8d09.tar.bz2
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 1e006bf..4b10118 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);