diff -r 857af79337d5 -r 110a234a3260 src/commit-data.h --- a/src/commit-data.h Fri Feb 06 18:44:47 2026 +0100 +++ b/src/commit-data.h Wed Feb 25 21:13:55 2026 +0100 @@ -31,14 +31,24 @@ #include namespace fm { + struct commit_info final { + std::string hash; + std::string message; + commit_info(std::string_view hash, std::string_view message) + : hash{hash}, message {message} {} + }; + using commit_counts = std::unordered_map< std::string, // repository name unsigned>; using summaries_lists = std::unordered_map< std::string, // repository name - std::vector >; + std::vector >; using tag_lists = std::unordered_map< std::string, // repository name + std::vector >; + using tag_summaries = std::unordered_map< + std::string, // repository name std::vector >; struct commits final { @@ -57,7 +67,7 @@ }; struct commit_summary final { - tag_lists tags_with_date; + tag_summaries tags_with_date; commit_counts commits; [[nodiscard]] unsigned count(const std::string &repo) const {