src/settings.h

changeset 78
5177d8af5536
parent 73
707f42bb0484
equal deleted inserted replaced
77:43a1ba0e11e3 78:5177d8af5536
35 constexpr static short settings_current_year = 0; 35 constexpr static short settings_current_year = 0;
36 36
37 struct settings { 37 struct settings {
38 std::string hg{"/usr/bin/hg"}; 38 std::string hg{"/usr/bin/hg"};
39 std::string git{"/usr/bin/git"}; 39 std::string git{"/usr/bin/git"};
40 std::string csv_path{};
40 std::vector<std::string> paths; 41 std::vector<std::string> paths;
41 std::vector<std::string> authors; 42 std::vector<std::string> authors;
42 std::unordered_map<std::string, std::string> authormap; 43 std::unordered_map<std::string, std::string> authormap;
43 44
44 unsigned char depth = 1; 45 unsigned char depth = 1;
45 bool update_repos = false; 46 bool update_repos = false;
46 bool separate = false; 47 bool separate = false;
47 bool fragment = false; 48 bool fragment = false;
48 bool styles_and_script = false; 49 bool styles_and_script = false;
50 bool csv = false;
49 unsigned char fragment_indent = 0; 51 unsigned char fragment_indent = 0;
50 unsigned short year = settings_current_year; 52 unsigned short year = settings_current_year;
51 53
52 int parse_authormap(const std::string& path); 54 int parse_authormap(const std::string& path);
53 [[nodiscard]] bool exclude_author(const std::string &author) const; 55 [[nodiscard]] bool exclude_author(const std::string &author) const;

mercurial