diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-07-19 22:22:16 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-19 22:22:16 +0200 |
commit | a63d31b4d3640960d9a71606eee80c32459f906e (patch) | |
tree | f38215188f294761cbedca19d676e64a8788bd15 /cache.h | |
parent | Merge branch 'js/log-to-diffopt-file' (diff) | |
parent | diff: convert prep_temp_blob() to struct object_id (diff) | |
download | git-a63d31b4d3640960d9a71606eee80c32459f906e.tar.xz git-a63d31b4d3640960d9a71606eee80c32459f906e.zip |
Merge branch 'bc/cocci'
Conversion from unsigned char sha1[20] to struct object_id
continues.
* bc/cocci:
diff: convert prep_temp_blob() to struct object_id
merge-recursive: convert merge_recursive_generic() to object_id
merge-recursive: convert leaf functions to use struct object_id
merge-recursive: convert struct merge_file_info to object_id
merge-recursive: convert struct stage_data to use object_id
diff: rename struct diff_filespec's sha1_valid member
diff: convert struct diff_filespec to struct object_id
coccinelle: apply object_id Coccinelle transformations
coccinelle: convert hashcpy() with null_sha1 to hashclr()
contrib/coccinelle: add basic Coccinelle transforms
hex: add oid_to_hex_r()
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1193,6 +1193,7 @@ extern int get_oid_hex(const char *hex, struct object_id *sha1); * printf("%s -> %s", sha1_to_hex(one), sha1_to_hex(two)); */ extern char *sha1_to_hex_r(char *out, const unsigned char *sha1); +extern char *oid_to_hex_r(char *out, const struct object_id *oid); extern char *sha1_to_hex(const unsigned char *sha1); /* static buffer result! */ extern char *oid_to_hex(const struct object_id *oid); /* same static buffer as sha1_to_hex */ |