From d6cece51b83db5d8a523c4ba857013c4242e310e Mon Sep 17 00:00:00 2001 From: Jeff King Date: Thu, 20 Oct 2016 02:20:07 -0400 Subject: diff_aligned_abbrev: use "struct oid" Since we're modifying this function anyway, it's a good time to update it to the more modern "struct oid". We can also drop some of the magic numbers in favor of GIT_SHA1_HEXSZ, along with some descriptive comments. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'diff.h') diff --git a/diff.h b/diff.h index f2b04b6d8..01afc70bd 100644 --- a/diff.h +++ b/diff.h @@ -344,7 +344,7 @@ extern void diff_warn_rename_limit(const char *varname, int needed, int degraded * This is different from find_unique_abbrev() in that * it stuffs the result with dots for alignment. */ -extern const char *diff_aligned_abbrev(const unsigned char *sha1, int); +extern const char *diff_aligned_abbrev(const struct object_id *sha1, int); /* do not report anything on removed paths */ #define DIFF_SILENT_ON_REMOVED 01 -- cgit v1.2.1