src/settings.h

changeset 16
730a5638c4ad
parent 14
f0ae064c5b9c
child 20
8639ccd855ba
--- 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 <string>
 #include <vector>
+#include <unordered_map>
 
 namespace fm {
 
@@ -38,12 +39,17 @@
     std::string git{"/usr/bin/git"};
     std::vector<std::string> paths;
     std::vector<std::string> authors;
+    std::unordered_map<std::string, std::string> 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;
 };
 
 }

mercurial