summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/common/TARGETS1
-rw-r--r--src/buildtool/common/repository_config.hpp6
2 files changed, 5 insertions, 2 deletions
diff --git a/src/buildtool/common/TARGETS b/src/buildtool/common/TARGETS
index 791b2ac3..4a802b82 100644
--- a/src/buildtool/common/TARGETS
+++ b/src/buildtool/common/TARGETS
@@ -164,6 +164,7 @@
, ["src/buildtool/file_system", "file_root"]
, ["src/buildtool/file_system", "git_cas"]
, ["src/buildtool/file_system", "git_tree"]
+ , ["src/buildtool/logging", "log_level"]
, ["src/buildtool/multithreading", "atomic_value"]
, ["src/buildtool/storage", "storage"]
]
diff --git a/src/buildtool/common/repository_config.hpp b/src/buildtool/common/repository_config.hpp
index 0060152d..218cd14d 100644
--- a/src/buildtool/common/repository_config.hpp
+++ b/src/buildtool/common/repository_config.hpp
@@ -31,6 +31,7 @@
#include "src/buildtool/file_system/file_root.hpp"
#include "src/buildtool/file_system/git_cas.hpp"
#include "src/buildtool/file_system/git_tree.hpp"
+#include "src/buildtool/logging/log_level.hpp"
#include "src/buildtool/multithreading/atomic_value.hpp"
#include "src/buildtool/storage/storage.hpp"
@@ -61,8 +62,9 @@ class RepositoryConfig {
}
[[nodiscard]] auto SetGitCAS(
- std::filesystem::path const& repo_path) noexcept {
- git_cas_ = GitCAS::Open(repo_path);
+ std::filesystem::path const& repo_path,
+ LogLevel log_level = LogLevel::Warning) noexcept -> bool {
+ git_cas_ = GitCAS::Open(repo_path, log_level);
return static_cast<bool>(git_cas_);
}