mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-01 04:16:59 -05:00
Rework policies to return branches rather than path strings
This commit is contained in:
parent
7e084ea7db
commit
86b50d2d4e
86 changed files with 1259 additions and 3088 deletions
|
|
@ -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(void) 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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue