From: Linus Torvalds Date: Sat, 16 Apr 2005 04:42:34 +0000 (-0700) Subject: Simplify show-diff cache entry name handling. X-Git-Tag: v0.99~874 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=13e897e58072678cdae3ec1db51cc91110dc559d;p=git.git Simplify show-diff cache entry name handling. The cache-entry names are all proper strings, no need to worry about their length. --- diff --git a/show-diff.c b/show-diff.c index 15dcd0525..6f343c56b 100644 --- a/show-diff.c +++ b/show-diff.c @@ -97,7 +97,7 @@ int main(int argc, char **argv) changed = cache_match_stat(ce, &st); if (!changed) continue; - printf("%.*s: ", ce_namelen(ce), ce->name); + printf("%s: ", ce->name); for (n = 0; n < 20; n++) printf("%02x", ce->sha1[n]); printf("\n");