summaryrefslogtreecommitdiff
path: root/show-diff.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 04:42:34 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 04:42:34 (GMT)
commit13e897e58072678cdae3ec1db51cc91110dc559d (patch)
treef2745cc464cc08214719d9f6ac71fdda9d6417a9 /show-diff.c
parentd07f651c25ce3980e9519872f772af12a12c8d26 (diff)
downloadgit-13e897e58072678cdae3ec1db51cc91110dc559d.zip
git-13e897e58072678cdae3ec1db51cc91110dc559d.tar.gz
git-13e897e58072678cdae3ec1db51cc91110dc559d.tar.bz2
Simplify show-diff cache entry name handling.
The cache-entry names are all proper strings, no need to worry about their length.
Diffstat (limited to 'show-diff.c')
-rw-r--r--show-diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/show-diff.c b/show-diff.c
index 15dcd05..6f343c5 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");