forked from mirrors/jj
cd3d75ebf6
Initially we were thinking to have `Revset` return something like `CachedRevset`: ``` pub trait CachedRevset { fn iter(&self) -> Box<dyn Iterator<Item = Commit>>; fn contains(&self, &CommitId) -> bool; } ``` But we weren't sure what use case for `iter` would be, so we dropped the `iter` method. `CachedRevset` with single `contains` method needed a better name. We weren't able to come up with one, so we decided instead to have a method on `Revset` that returns a closure to check if a commit is in a revset. |
||
---|---|---|
.. | ||
benches | ||
gen-protos | ||
proc-macros | ||
src | ||
tests | ||
testutils | ||
Cargo.toml | ||
LICENSE |