diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-10 14:03:58 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-10 14:03:58 -0700 |
commit | 73134b6d3f700bb9e6c66aa2f099de644c6b8d09 (patch) | |
tree | 5588456a03dc45bc5cc026a7e61ecb86bdd10c38 /cache.h | |
parent | Make "update-cache" a bit friendlier to use (and harder to mis-use). (diff) | |
download | tgif-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.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |