diff options
author | Jeff King <peff@peff.net> | 2016-10-20 02:20:07 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-26 13:30:51 -0700 |
commit | d6cece51b83db5d8a523c4ba857013c4242e310e (patch) | |
tree | 00026cf8d8f9e753c8dad349955d65b71c210e36 /diff.h | |
parent | d5e3b01e5bd6b06c06dbd5d1e2257d57e6b1deb7 (diff) | |
download | git-d6cece51b83db5d8a523c4ba857013c4242e310e.tar.gz |
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |