Code

Show root; blast raw diff lines
authorJonas Fonseca <fonseca@diku.dk>
Tue, 11 Apr 2006 00:35:28 +0000 (02:35 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Tue, 11 Apr 2006 00:35:28 +0000 (02:35 +0200)
cgit.c

diff --git a/cgit.c b/cgit.c
index a22dfbe430238b1080a2968a72f847f60a41ee1d..6461e547efd7c93228506fa208f1b901388c6a5d 100644 (file)
--- 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;