#include "xdiff-interface.h"
#include "quote.h"
+#ifndef DEBUG
#define DEBUG 0
+#endif
static const char blame_usage[] =
"git-blame [-c] [-l] [-t] [-f] [-n] [-p] [-S <revs-file>] [--] file [commit]\n"
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;
return;
info->buf = read_sha1_file(info->sha1, type, &info->size);
+ num_read_blob++;
assert(!strcmp(type, blob_type));
}
util2->num_lines ? util->num_lines : util2->num_lines;
int num;
+ if (print_map == NULL)
+ ; /* to avoid "unused function" warning */
+
for (i = 0; i < max; i++) {
printf("i: %d ", i);
num = -1;
}
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);