src/heatmap.h

changeset 44
de22ded6d50a
parent 16
730a5638c4ad
equal deleted inserted replaced
43:f58fd8461e10 44:de22ded6d50a
24 24
25 #ifndef HEATMAP_H 25 #ifndef HEATMAP_H
26 #define HEATMAP_H 26 #define HEATMAP_H
27 27
28 #include <map> 28 #include <map>
29 #include <array>
29 #include <string> 30 #include <string>
30 #include <chrono> 31 #include <chrono>
31 32
32 #include "settings.h" 33 #include "settings.h"
33 34
51 void add(const settings &settings, const std::string& log); 52 void add(const settings &settings, const std::string& log);
52 53
53 [[nodiscard]] const auto& data() const { 54 [[nodiscard]] const auto& data() const {
54 return m_heatmap; 55 return m_heatmap;
55 } 56 }
57
58 [[nodiscard]] std::array<unsigned int, 12> commits_per_month(
59 const std::string &repo,
60 const std::string& author,
61 std::chrono::year year
62 ) const;
56 }; 63 };
57 64
58 } 65 }
59 66
60 #endif //HEATMAP_H 67 #endif //HEATMAP_H

mercurial