From ee15c997efce81d0203757eb5fd9db80aeb610f9 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 25 May 2023 13:03:02 +0200 Subject: git repos: Add option for ignore-special root --- src/other_tools/root_maps/commit_git_map.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/other_tools/root_maps/commit_git_map.hpp') diff --git a/src/other_tools/root_maps/commit_git_map.hpp b/src/other_tools/root_maps/commit_git_map.hpp index 352c094e..1e702e3a 100644 --- a/src/other_tools/root_maps/commit_git_map.hpp +++ b/src/other_tools/root_maps/commit_git_map.hpp @@ -31,9 +31,12 @@ struct GitRepoInfo { std::string subdir{}; /* key */ // name of repository for which work is done; used in progress reporting std::string origin{}; + // create root that ignores symlinks + bool ignore_special{}; /* key */ [[nodiscard]] auto operator==(const GitRepoInfo& other) const -> bool { - return hash == other.hash and subdir == other.subdir; + return hash == other.hash and subdir == other.subdir and + ignore_special == other.ignore_special; } }; @@ -45,6 +48,7 @@ struct hash { size_t seed{}; hash_combine(&seed, ct.hash); hash_combine(&seed, ct.subdir); + hash_combine(&seed, ct.ignore_special); return seed; } }; -- cgit v1.2.3