]> git.ipfire.org Git - thirdparty/git.git/blobdiff - hex.c
Merge branch 'rs/hex2chr' into maint
[thirdparty/git.git] / hex.c
diff --git a/hex.c b/hex.c
index 60541c9d4b5e8e33e3e952ee638fad9e4230799d..ab2610e498615b197787a8c22cd00f979e488fc8 100644 (file)
--- a/hex.c
+++ b/hex.c
@@ -69,6 +69,11 @@ char *sha1_to_hex_r(char *buffer, const unsigned char *sha1)
        return buffer;
 }
 
+char *oid_to_hex_r(char *buffer, const struct object_id *oid)
+{
+       return sha1_to_hex_r(buffer, oid->hash);
+}
+
 char *sha1_to_hex(const unsigned char *sha1)
 {
        static int bufno;