summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c230390)
raw | patch | inline | side by side (parent: c230390)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 5 Nov 2006 19:52:43 +0000 (11:52 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 14 Feb 2007 03:30:03 +0000 (19:30 -0800) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-blame.c | patch | blob | history |
diff --git a/builtin-blame.c b/builtin-blame.c
index 69fc145a38090488e8da4b60a56154fc999b6fe5..7a5665f093d7861fdab8a57f9f98c371210525b3 100644 (file)
--- a/builtin-blame.c
+++ b/builtin-blame.c
int i, seen_dashdash, unk, opt;
long bottom, top, lno;
int output_option = 0;
+ int show_stats = 0;
const char *revs_file = NULL;
const char *final_commit_name = NULL;
char type[10];
blank_boundary = 1;
else if (!strcmp("--root", arg))
show_root = 1;
+ else if (!strcmp(arg, "--show-stats"))
+ show_stats = 1;
else if (!strcmp("-c", arg))
output_option |= OUTPUT_ANNOTATE_COMPAT;
else if (!strcmp("-t", arg))
ent = e;
}
- if (DEBUG) {
+ if (show_stats) {
printf("num read blob: %d\n", num_read_blob);
printf("num get patch: %d\n", num_get_patch);
printf("num commits: %d\n", num_commits);