author | Lars Hjemli <hjemli@gmail.com> | 2008-10-05 17:19:59 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-10-05 17:19:59 (UTC) |
commit | b7f33786ef4b155a11b0324f84bbde5d7fc9c998 (patch) (unidiff) | |
tree | 3ccdd8ca2e02cb80814727bddd5083a8ea046843 /ui-log.c | |
parent | b9aabf0b8fbf3a3ab69010ee2c9ed5426c751912 (diff) | |
download | cgit-b7f33786ef4b155a11b0324f84bbde5d7fc9c998.zip cgit-b7f33786ef4b155a11b0324f84bbde5d7fc9c998.tar.gz cgit-b7f33786ef4b155a11b0324f84bbde5d7fc9c998.tar.bz2 |
Use GIT-1.6.0.2
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | ui-log.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -79,36 +79,34 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern | |||
79 | 79 | ||
80 | if (grep && pattern && (!strcmp(grep, "grep") || | 80 | if (grep && pattern && (!strcmp(grep, "grep") || |
81 | !strcmp(grep, "author") || | 81 | !strcmp(grep, "author") || |
82 | !strcmp(grep, "committer"))) | 82 | !strcmp(grep, "committer"))) |
83 | argv[argc++] = fmt("--%s=%s", grep, pattern); | 83 | argv[argc++] = fmt("--%s=%s", grep, pattern); |
84 | 84 | ||
85 | if (path) { | 85 | if (path) { |
86 | argv[argc++] = "--"; | 86 | argv[argc++] = "--"; |
87 | argv[argc++] = path; | 87 | argv[argc++] = path; |
88 | } | 88 | } |
89 | init_revisions(&rev, NULL); | 89 | init_revisions(&rev, NULL); |
90 | rev.abbrev = DEFAULT_ABBREV; | 90 | rev.abbrev = DEFAULT_ABBREV; |
91 | rev.commit_format = CMIT_FMT_DEFAULT; | 91 | rev.commit_format = CMIT_FMT_DEFAULT; |
92 | rev.verbose_header = 1; | 92 | rev.verbose_header = 1; |
93 | rev.show_root_diff = 0; | 93 | rev.show_root_diff = 0; |
94 | setup_revisions(argc, argv, &rev, NULL); | 94 | setup_revisions(argc, argv, &rev, NULL); |
95 | if (rev.grep_filter) { | 95 | rev.grep_filter.regflags |= REG_ICASE; |
96 | rev.grep_filter->regflags |= REG_ICASE; | 96 | compile_grep_patterns(&rev.grep_filter); |
97 | compile_grep_patterns(rev.grep_filter); | ||
98 | } | ||
99 | prepare_revision_walk(&rev); | 97 | prepare_revision_walk(&rev); |
100 | 98 | ||
101 | if (pager) | 99 | if (pager) |
102 | html("<table class='list nowrap'>"); | 100 | html("<table class='list nowrap'>"); |
103 | 101 | ||
104 | html("<tr class='nohover'><th class='left'>Age</th>" | 102 | html("<tr class='nohover'><th class='left'>Age</th>" |
105 | "<th class='left'>Commit message</th>" | 103 | "<th class='left'>Commit message</th>" |
106 | "<th class='left'>Author</th>"); | 104 | "<th class='left'>Author</th>"); |
107 | if (ctx.repo->enable_log_filecount) { | 105 | if (ctx.repo->enable_log_filecount) { |
108 | html("<th class='left'>Files</th>"); | 106 | html("<th class='left'>Files</th>"); |
109 | columns++; | 107 | columns++; |
110 | if (ctx.repo->enable_log_linecount) { | 108 | if (ctx.repo->enable_log_linecount) { |
111 | html("<th class='left'>Lines</th>"); | 109 | html("<th class='left'>Lines</th>"); |
112 | columns++; | 110 | columns++; |
113 | } | 111 | } |
114 | } | 112 | } |