Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Simplify show-diff cache entry name handling.
[gitweb.git]
/
show-diff.c
diff --git
a/show-diff.c
b/show-diff.c
index 15dcd0525ed944c6f82f93a1744c15e2f3325e61..6f343c56bd52ec180f0e22283a2d053bb1f6737e 100644
(file)
--- 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");