summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_repo.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-10-08 09:16:13 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-10-08 15:41:50 +0200
commit6832ded200f7a563b9e2cf81148fd26fdb064fdd (patch)
tree0f7aff13b0ac63dd16b15ff9329dbc2529355aa6 /src/buildtool/file_system/git_repo.hpp
parentdb5519c663ad119a47cb7747f80109267c301156 (diff)
downloadjustbuild-6832ded200f7a563b9e2cf81148fd26fdb064fdd.tar.gz
Name classes, structs and enums using CamelCase.
Diffstat (limited to 'src/buildtool/file_system/git_repo.hpp')
-rw-r--r--src/buildtool/file_system/git_repo.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/buildtool/file_system/git_repo.hpp b/src/buildtool/file_system/git_repo.hpp
index 0127c604..df100b35 100644
--- a/src/buildtool/file_system/git_repo.hpp
+++ b/src/buildtool/file_system/git_repo.hpp
@@ -44,12 +44,11 @@ class GitRepo {
public:
// Stores the data for defining a single Git tree entry, which consists of
// a name (flat basename) and an object type (file/executable/tree).
- struct tree_entry_t {
- tree_entry_t(std::string n, ObjectType t)
- : name{std::move(n)}, type{t} {}
+ struct TreeEntry {
+ TreeEntry(std::string n, ObjectType t) : name{std::move(n)}, type{t} {}
std::string name;
ObjectType type;
- [[nodiscard]] auto operator==(tree_entry_t const& other) const noexcept
+ [[nodiscard]] auto operator==(TreeEntry const& other) const noexcept
-> bool {
return name == other.name and type == other.type;
}
@@ -59,7 +58,7 @@ class GitRepo {
// Note that sharding by id is used as this format enables a more efficient
// internal implementation for creating trees.
using tree_entries_t =
- std::unordered_map<std::string, std::vector<tree_entry_t>>;
+ std::unordered_map<std::string, std::vector<TreeEntry>>;
// Stores the info of an object read by its path.
struct TreeEntryInfo {