summaryrefslogtreecommitdiff
path: root/show-diff.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-12 02:01:12 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-12 02:01:12 -0700
commit5e76011c0dd9e3f7f6eb766e8c28dd8fcd4adcf9 (patch)
treefd8bcb6bf8499aca79300df577d2c9b8cc898f1b /show-diff.c
parent74b46e32cb3907a4a062a0f11de5773054b7c71a (diff)
downloadgit-5e76011c0dd9e3f7f6eb766e8c28dd8fcd4adcf9.tar.gz
Remove the annoying "ok" printout from show-diff.
It used to be useful before I wrote "show-files", so that show-diff would also tell what the cached files were. Now it's just annoying.
Diffstat (limited to 'show-diff.c')
-rw-r--r--show-diff.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/show-diff.c b/show-diff.c
index d9af29fd87..55b8576805 100644
--- a/show-diff.c
+++ b/show-diff.c
@@ -39,10 +39,8 @@ int main(int argc, char **argv)
continue;
}
changed = cache_match_stat(ce, &st);
- if (!changed) {
- printf("%s: ok\n", ce->name);
+ if (!changed)
continue;
- }
printf("%.*s: ", ce->namelen, ce->name);
for (n = 0; n < 20; n++)
printf("%02x", ce->sha1[n]);