mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 00:48:35 +00:00
fix nightly
This commit is contained in:
parent
706cdf9243
commit
3453e4624d
2 changed files with 15 additions and 15 deletions
|
|
@ -198,22 +198,22 @@ pub fn filter_commit_by_search(
|
|||
.flatten()
|
||||
.is_some_and(|diff| filter.match_diff(&diff));
|
||||
|
||||
let authors_match = filter
|
||||
let authors_match = if filter
|
||||
.options
|
||||
.fields
|
||||
.contains(SearchFields::AUTHORS)
|
||||
.then(|| {
|
||||
let author =
|
||||
get_author_of_commit(&commit, &mailmap);
|
||||
[author.email(), author.name()].iter().any(
|
||||
|opt_haystack| {
|
||||
opt_haystack.is_some_and(|haystack| {
|
||||
filter.match_text(haystack)
|
||||
})
|
||||
},
|
||||
)
|
||||
})
|
||||
.unwrap_or_default();
|
||||
{
|
||||
let author = get_author_of_commit(&commit, &mailmap);
|
||||
[author.email(), author.name()].iter().any(
|
||||
|opt_haystack| {
|
||||
opt_haystack.is_some_and(|haystack| {
|
||||
filter.match_text(haystack)
|
||||
})
|
||||
},
|
||||
)
|
||||
} else {
|
||||
false
|
||||
};
|
||||
|
||||
Ok(msg_summary_match
|
||||
|| msg_body_match
|
||||
|
|
|
|||
4
build.rs
4
build.rs
|
|
@ -44,6 +44,6 @@ fn main() {
|
|||
format!("nightly {} ({})", build_date, get_git_hash())
|
||||
};
|
||||
|
||||
println!("cargo:warning=buildname '{}'", build_name);
|
||||
println!("cargo:rustc-env=GITUI_BUILD_NAME={}", build_name);
|
||||
println!("cargo:warning=buildname '{build_name}'");
|
||||
println!("cargo:rustc-env=GITUI_BUILD_NAME={build_name}");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue