diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Settle the names, types and layout of the sources
Diffstat (limited to 'source/ui-log.c')
| -rw-r--r-- | source/ui-log.c | 8 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 4 insertions, 4 deletions
diff --git a/source/ui-log.c b/source/ui-log.c index ff02d9a..5eb9a74 100644 --- a/source/ui-log.c +++ b/source/ui-log.c @@ -56,7 +56,7 @@ static void inspect_files(struct diff_filepair *pair) count_lines); } -void show_commit_decorations(struct commit *commit) +void cgit_print_commit_decorations(struct commit *commit) { const struct name_decoration *deco; static char buf[1024]; @@ -221,8 +221,8 @@ static void print_commit(struct commit *commit, struct rev_info *revs) /* line-wrap long commit subjects instead of truncating them */ size_t subject_len = strlen(info->subject); - if (subject_len > ctx.cfg.max_msg_len && - ctx.cfg.max_msg_len >= 15) { + if (ctx.cfg.max_msg_len >= 15 && + subject_len > (size_t)ctx.cfg.max_msg_len) { /* symbol for signaling line-wrap (in PAGE_ENCODING) */ const char wrap_symbol[] = { ' ', 0xE2, 0x86, 0xB5, 0 }; int i = ctx.cfg.max_msg_len - strlen(wrap_symbol); @@ -244,7 +244,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs) } cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, oid_to_hex(&commit->object.oid), ctx.qry.vpath); - show_commit_decorations(commit); + cgit_print_commit_decorations(commit); html("</td><td class='col-author'>"); cgit_open_filter(ctx.repo->email_filter, info->author_email, "log"); html_txt(info->author); |
