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

@ -32,7 +32,9 @@ namespace Policy
{}
public:
int operator()(const Branches::CPtr&,const char*,StrVec*) const final;
int operator()(const Branches::Ptr&,
const char*,
std::vector<Branch*>&) const final;
};
class Create final : public Policy::CreateImpl
@ -43,7 +45,9 @@ namespace Policy
{}
public:
int operator()(const Branches::CPtr&,const char*,StrVec*) const final;
int operator()(const Branches::Ptr&,
const char*,
std::vector<Branch*>&) const final;
bool path_preserving() const final { return true; }
};
@ -55,7 +59,9 @@ namespace Policy
{}
public:
int operator()(const Branches::CPtr&,const char*,StrVec*) const final;
int operator()(const Branches::Ptr&,
const char*,
std::vector<Branch*>&) const final;
};
}
}