Manager: Add new pattern logic to pulling/pushing targets

This commit is contained in:
Riyyi
2022-03-08 00:05:54 +01:00
parent 4110680cc6
commit ed13b1f6b5
3 changed files with 13 additions and 23 deletions
+2 -2
View File
@@ -30,7 +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);
bool filter(const std::filesystem::directory_entry& path,
const std::vector<std::string>& patterns);
private:
void pullOrPush(SyncType type, const std::vector<std::string>& targets = {});
@@ -41,7 +42,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 include(const std::filesystem::path& path, const std::vector<std::string>& targets);
bool isSystemTarget(const std::string& target);
};