From 67392cc46c61bba11049781e78240130c6f66fc7 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 11 Apr 2006 02:35:28 +0200 Subject: [PATCH] Show root; blast raw diff lines --- cgit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgit.c b/cgit.c index a22dfbe..6461e54 100644 --- a/cgit.c +++ b/cgit.c @@ -119,7 +119,7 @@ init(void) #define LOG_CMD \ "git-rev-list $(git-rev-parse --since=1.month) HEAD | " \ - "git-diff-tree --stdin --pretty -r" + "git-diff-tree --stdin --pretty -r --root" static void log_filter(char *line, int lineno) @@ -160,10 +160,12 @@ log_filter(char *line, int lineno) wattrset(mainwin, COLOR_PAIR(COLOR_MAGENTA)); } else if (line[0] == ':') { + pipe_lineno--; log_filter_skip = 1; return; } else if (log_filter_skip) { + pipe_lineno--; log_filter_skip = 0; return; -- 2.30.2