200 return EXIT_FAILURE; |
200 return EXIT_FAILURE; |
201 } |
201 } |
202 heatmap.add(proc.output()); |
202 heatmap.add(proc.output()); |
203 } else { |
203 } else { |
204 proc.setbin(settings.git); |
204 proc.setbin(settings.git); |
205 if (proc.exec({"log", |
205 if (proc.exec_log({"log", |
206 "--since", std::format("{0}-01-01", year), |
206 "--since", std::format("{0}-01-01", year), |
207 "--until", std::format("{0}-12-31", year), |
207 "--until", std::format("{0}-12-31", year), |
208 "--format=tformat:%an <%ae>#%cs"})) { |
208 "--format=tformat:%an <%ae>#%cs"})) { |
209 fprintf(stderr, "Reading commit log for repo '%s' failed!\n", repo.path.c_str()); |
209 fprintf(stderr, "Reading commit log for repo '%s' failed!\n", repo.path.c_str()); |
210 return EXIT_FAILURE; |
210 return EXIT_FAILURE; |