Test: Add exclude path test cases for the new /.gitignore*/ logic

This commit is contained in:
Riyyi
2022-03-06 16:35:57 +01:00
parent 57d50a6dbb
commit 832816a87e
2 changed files with 264 additions and 1 deletions
+2 -1
View File
@@ -30,6 +30,8 @@ public:
void pull(const std::vector<std::string>& targets = {});
void push(const std::vector<std::string>& targets = {});
bool filter(const std::filesystem::directory_entry& path);
private:
void pullOrPush(SyncType type, const std::vector<std::string>& targets = {});
void sync(SyncType type,
@@ -39,7 +41,6 @@ private:
void selectivelyCommentOrUncomment(const std::string& path);
void forEachDotfile(const std::vector<std::string>& targets, const std::function<void(const std::filesystem::directory_entry&, size_t)>& callback);
bool filter(const std::filesystem::directory_entry& path);
bool include(const std::filesystem::path& path, const std::vector<std::string>& targets);
bool isSystemTarget(const std::string& target);
};