23 */ |
23 */ |
24 |
24 |
25 #ifndef COMMIT_DATA_H |
25 #ifndef COMMIT_DATA_H |
26 #define COMMIT_DATA_H |
26 #define COMMIT_DATA_H |
27 |
27 |
28 #include <map> |
28 #include <unordered_map> |
29 #include <numeric> |
29 #include <numeric> |
30 #include <vector> |
30 #include <vector> |
31 #include <string> |
31 #include <string> |
32 |
32 |
33 namespace fm { |
33 namespace fm { |
34 struct commits final { |
34 struct commits final { |
35 std::map< |
35 std::unordered_map< |
36 std::string, // repository name |
36 std::string, // repository name |
37 std::vector<std::string> > summaries; |
37 std::vector<std::string> > summaries; |
|
38 std::unordered_map< |
|
39 std::string, // repository name |
|
40 std::vector<std::string> > tags; |
38 |
41 |
39 [[nodiscard]] unsigned count(const std::string &repo) const { |
42 [[nodiscard]] unsigned count(const std::string &repo) const { |
40 return summaries.at(repo).size(); |
43 return summaries.at(repo).size(); |
41 } |
44 } |
42 |
45 |