summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@ppc970.osdl.org>2005-04-15 21:42:34 -0700
committerLibravatar Linus Torvalds <torvalds@ppc970.osdl.org>2005-04-15 21:42:34 -0700
commit13e897e58072678cdae3ec1db51cc91110dc559d (patch)
treef2745cc464cc08214719d9f6ac71fdda9d6417a9
parent[PATCH] Add '-z' to merge-tree.c (diff)
downloadtgif-13e897e58072678cdae3ec1db51cc91110dc559d.tar.xz
Simplify show-diff cache entry name handling.
The cache-entry names are all proper strings, no need to worry about their length.
-rw-r--r--show-diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/show-diff.c b/show-diff.c
index 15dcd0525e..6f343c56bd 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");