diff -r ef0f2497843e -r 730a5638c4ad src/settings.h --- a/src/settings.h Sat Feb 01 15:42:48 2025 +0100 +++ b/src/settings.h Sat Feb 01 16:01:14 2025 +0100 @@ -28,6 +28,7 @@ #include #include +#include namespace fm { @@ -38,12 +39,17 @@ std::string git{"/usr/bin/git"}; std::vector paths; std::vector authors; + std::unordered_map authormap; + unsigned char depth = 1; bool update_repos = true; bool separate = false; unsigned short year = settings_current_year; + int parse_authormap(const std::string& path); [[nodiscard]] bool exclude_author(const std::string &author) const; + + std::string map_author(std::string_view author) const; }; }