182 if (settings.year == fm::settings_current_year) { |
183 if (settings.year == fm::settings_current_year) { |
183 year = static_cast<int>(chrono::year_month_day{chrono::floor<chrono::days>(chrono::system_clock::now())}.year()); |
184 year = static_cast<int>(chrono::year_month_day{chrono::floor<chrono::days>(chrono::system_clock::now())}.year()); |
184 } else { |
185 } else { |
185 year = settings.year; |
186 year = settings.year; |
186 } |
187 } |
187 chrono::year_month_day report_begin{chrono::year{year}, chrono::month{1}, chrono::day{1}}; |
188 chrono::year_month_day report_begin{chrono::year{year}, chrono::January, 1d}; |
188 chrono::year_month_day report_end{chrono::year{year}, chrono::month{12}, chrono::day{31}}; |
189 chrono::year_month_day report_end{chrono::year{year}, chrono::December, 31d}; |
189 |
190 |
190 // read the commit logs |
191 // read the commit logs |
191 fm::heatmap heatmap; |
192 fm::heatmap heatmap; |
192 for (auto &&repo : repos.list()) { |
193 for (auto &&repo : repos.list()) { |
193 if (settings.separate) { |
194 if (settings.separate) { |