summaryrefslogtreecommitdiff
path: root/src/other_tools/git_operations
diff options
context:
space:
mode:
Diffstat (limited to 'src/other_tools/git_operations')
-rw-r--r--src/other_tools/git_operations/git_ops_types.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/other_tools/git_operations/git_ops_types.hpp b/src/other_tools/git_operations/git_ops_types.hpp
index 7c4b03a5..3dfdd4a8 100644
--- a/src/other_tools/git_operations/git_ops_types.hpp
+++ b/src/other_tools/git_operations/git_ops_types.hpp
@@ -27,27 +27,23 @@
struct GitOpParams {
std::filesystem::path target_path{}; /*key*/
std::string git_hash{}; /*key*/
- std::string branch{}; /*key*/
std::optional<std::string> message{
std::nullopt}; // useful for commits and tags
std::optional<bool> init_bare{std::nullopt}; // useful for git init
GitOpParams(std::filesystem::path const& target_path_,
std::string git_hash_,
- std::string branch_,
std::optional<std::string> message_ = std::nullopt,
std::optional<bool> init_bare_ = std::nullopt)
: target_path{std::filesystem::absolute(ToNormalPath(target_path_))},
git_hash{std::move(git_hash_)},
- branch{std::move(branch_)},
message{std::move(message_)},
init_bare{init_bare_} {};
[[nodiscard]] auto operator==(GitOpParams const& other) const noexcept
-> bool {
// not all fields are keys
- return target_path == other.target_path and
- git_hash == other.git_hash and branch == other.branch;
+ return target_path == other.target_path and git_hash == other.git_hash;
}
};