提交 13e897e5 编写于 作者: L Linus Torvalds

Simplify show-diff cache entry name handling.

The cache-entry names are all proper strings, no need to worry about
their length.
上级 d07f651c
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册