summaryrefslogtreecommitdiff
path: root/blame.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-11-08 00:33:59 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-11-08 00:33:59 (GMT)
commit24ad8e0ce23d08d28a5d664ab6164b10125146ce (patch)
treeedcba1269b22d79a04558b83f47617f3ecc2acd0 /blame.c
parent231f240b63bd6cb1313e8952448b3d5b9d2fdf26 (diff)
parent7bd9641df5b7cca91b21bfdc587962c59700786c (diff)
downloadgit-24ad8e0ce23d08d28a5d664ab6164b10125146ce.zip
git-24ad8e0ce23d08d28a5d664ab6164b10125146ce.tar.gz
git-24ad8e0ce23d08d28a5d664ab6164b10125146ce.tar.bz2
Merge branch 'jc/pickaxe'
Diffstat (limited to 'blame.c')
-rw-r--r--blame.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/blame.c b/blame.c
index 3ec1c8f..1144c85 100644
--- a/blame.c
+++ b/blame.c
@@ -67,6 +67,7 @@ static void get_blob(struct commit *commit);
static int num_get_patch;
static int num_commits;
static int patch_time;
+static int num_read_blob;
struct blame_diff_state {
struct xdiff_emit_state xm;
@@ -206,6 +207,7 @@ static void get_blob(struct commit *commit)
return;
info->buf = read_sha1_file(info->sha1, type, &info->size);
+ num_read_blob++;
assert(!strcmp(type, blob_type));
}
@@ -1076,6 +1078,7 @@ int main(int argc, const char **argv)
}
if (DEBUG) {
+ 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);
printf("patch time: %f\n", patch_time / 1000000.0);