Introduces a type, `Canonical`, to make manipulating and calculating canonical reference quorum's easier. The idea is that the type can be constructed by providing a set of delegates and the reference name for which the calculations are referencing. It can construct the set of tips and can output the quourum. It provides a shortcut for constructing the `default_branch` set of tips. It also provides some extra methods for helping in quorum calculations that will be used within the remote helper code. Note that this does not yet replace the `quorum` function in the `git` module -- this is to help minimise the review of this commit. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||