projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d07f651
)
Simplify show-diff cache entry name handling.
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 04:42:34 +0000
(21:42 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 04:42:34 +0000
(21:42 -0700)
The cache-entry names are all proper strings, no need to worry about
their length.
show-diff.c
patch
|
blob
|
history
diff --git
a/show-diff.c
b/show-diff.c
index
15dcd05
..
6f343c5
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");