Rework policies to return branches rather than path strings

This commit is contained in:
trapexit 2025-05-17 16:35:18 -05:00 • committed by GitHub
parent 7e084ea7db
commit 86b50d2d4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
86 changed files with 1259 additions and 3088 deletions

View file

@ -19,7 +19,6 @@
#pragma once
#include "policy.hpp"
#include "strvec.hpp"
#include <cstdint>
#include <string>
@ -36,7 +35,7 @@ public:
Value();
uint64_t time;
StrVec paths;
std::vector<Branch*> paths;
};
public:
@ -51,7 +50,7 @@ public:
int operator()(const Policy::Search &policy,
const Branches &branches,
const char *fusepath,
StrVec *paths);
std::vector<Branch*> &paths);
public:
uint64_t timeout;