src/main.cpp

changeset 54
586dcd606e47
parent 52
e9edc3bd0301
--- a/src/main.cpp	Fri Jun 20 17:15:18 2025 +0200
+++ b/src/main.cpp	Sat Jun 28 11:32:08 2025 +0200
@@ -262,7 +262,7 @@
             proc.setbin(settings.hg);
             if (proc.exec_log({"log",
                 "--date", std::format("{0}-01-01 00:00:00 to {0}-12-31 23:59:59", report_year),
-                "--template", "{author}#{date|shortdate}\n"})) {
+                "--template", "{author}#{date|shortdate}#{desc|firstline}\n"})) {
                 fprintf(stderr, "Reading commit log for repo '%s' failed!\n", repo.path.c_str());
                 return EXIT_FAILURE;
             }
@@ -272,7 +272,7 @@
             if (proc.exec_log({"log",
                 "--since", std::format("{0}-01-01 00:00:00", report_year),
                 "--until", std::format("{0}-12-31 23:59:59", report_year),
-                "--format=tformat:%an <%ae>#%cs"})) {
+                "--format=tformat:%an <%ae>#%cs#%s"})) {
                 fprintf(stderr, "Reading commit log for repo '%s' failed!\n", repo.path.c_str());
                 return EXIT_FAILURE;
             }
@@ -323,7 +323,7 @@
                     // get the entry from the heatmap
                     auto find_result = entries.find(day_to_check);
                     if (find_result == entries.end()) {
-                        html::cell(day_to_check, 0);
+                        html::cell(day_to_check);
                     } else {
                         html::cell(day_to_check, find_result->second);
                     }

mercurial