Skip to content

Commit

Permalink
revset: rename RevsetFilterPredicate::{Author,Committer}{→ Raw}
Browse files Browse the repository at this point in the history
Prepare for `.mailmap` support.
  • Loading branch information
emilazy authored and maddiemort committed Sep 20, 2024
1 parent c1d9de1 commit 12592bf
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 81 deletions.
4 changes: 2 additions & 2 deletions lib/src/default_index/revset_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ fn build_predicate_fn(
pattern.matches(commit.description())
})
}
RevsetFilterPredicate::Author(field, pattern) => {
RevsetFilterPredicate::AuthorRaw(field, pattern) => {
let pattern = pattern.clone();
let &field = field;
// TODO: Make these functions that take a needle to search for accept some
Expand All @@ -1064,7 +1064,7 @@ fn build_predicate_fn(
pattern.matches(field_value)
})
}
RevsetFilterPredicate::Committer(field, pattern) => {
RevsetFilterPredicate::CommitterRaw(field, pattern) => {
let pattern = pattern.clone();
let &field = field;
box_pure_predicate_fn(move |index, pos| {
Expand Down
Loading

0 comments on commit 12592bf

Please sign in to comment.