Simplify show-diff cache entry name handling.

The cache-entry names are all proper strings, no need to worry about
their length.
maint
Linus Torvalds 2005-04-15 21:42:34 -07:00
parent d07f651c25
commit 13e897e580
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ int main(int argc, char **argv)
changed = cache_match_stat(ce, &st); changed = cache_match_stat(ce, &st);
if (!changed) if (!changed)
continue; continue;
printf("%.*s: ", ce_namelen(ce), ce->name); printf("%s: ", ce->name);
for (n = 0; n < 20; n++) for (n = 0; n < 20; n++)
printf("%02x", ce->sha1[n]); printf("%02x", ce->sha1[n]);
printf("\n"); printf("\n");