diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-15 21:42:34 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-15 21:42:34 -0700 |
commit | 13e897e58072678cdae3ec1db51cc91110dc559d (patch) | |
tree | f2745cc464cc08214719d9f6ac71fdda9d6417a9 /show-diff.c | |
parent | d07f651c25ce3980e9519872f772af12a12c8d26 (diff) | |
download | git-13e897e58072678cdae3ec1db51cc91110dc559d.tar.gz |
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.c | 2 |
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"); |