Check-in by ben on 2025-11-12 16:19:02
In timeline, if comment is empty use commit instead.
INSERTED DELETED
6 2 coprolit.awk
6 2 TOTAL over 1 changed file
Index: coprolit.awk
==================================================================
--- coprolit.awk
+++ coprolit.awk
@@ -421,11 +421,13 @@
info(out, sprintf("# %s / Timeline / Tag %s",
_conf["project-name"], tag))
menu(out, "Timeline")
for (i = 1; i <= m; i++) {
- if (length(comment) < 42) {
+ if (length(comment) == 0) {
+ comment_abbrev = commit
+ } else if (length(comment) < 42) {
comment_abbrev = comment
} else {
comment_abbrev = substr(comment, 1, 37) "..."
}
label = sprintf("%-17s %-41s %s",
@@ -635,11 +637,13 @@
author = $0
} else if ($1 == "Comment:") {
sub(/^Comment: */, "")
comment = $0
} else if (length($0) == 0) {
- if (length(comment) < 42) {
+ if (length(comment) == 0) {
+ comment_abbrev = commit
+ } else if (length(comment) < 42) {
comment_abbrev = comment
} else {
comment_abbrev = substr(comment, 1, 37) "..."
}
label = sprintf("%-17s %-41s %s",