Merge branch 'vs/typofix'
[gitweb.git] / hex.c
diff --git a/hex.c b/hex.c
index 0519f853b26e527aa529c75da6c302663881102e..9619b67af0b79c4ebae4c5e6a5f5748405bd4dea 100644 (file)
--- a/hex.c
+++ b/hex.c
@@ -77,6 +77,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;