Skip to content

Commit

Permalink
Adjust "Diffable" to exclude missing target objects
Browse files Browse the repository at this point in the history
  • Loading branch information
encounter committed Oct 9, 2023
1 parent d9e7dac commit 7b58f9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "objdiff"
version = "0.5.1"
version = "0.5.2"
edition = "2021"
rust-version = "1.70"
authors = ["Luke Street <[email protected]>"]
Expand Down
3 changes: 2 additions & 1 deletion src/views/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ fn filter_node(
match node {
ProjectObjectNode::File(name, object) => {
if (search.is_empty() || name.to_ascii_lowercase().contains(search))
&& (!filter_diffable || object.base_path.is_some())
&& (!filter_diffable
|| (object.base_path.is_some() && object.target_path.is_some()))
{
Some(node.clone())
} else {
Expand Down

0 comments on commit 7b58f9a

Please sign in to comment.