mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-29 19:11:11 +00:00
working_copy: don't send unchanged file states over channel
This doesn't seem to make any difference right now, but it will if we write the state file when there are mtime-only changes, which we currently don't do.
This commit is contained in:
parent
1221e306a1
commit
5641ef9a42
@ -836,7 +836,9 @@ impl TreeState {
|
|||||||
.send((tracked_path.clone(), tree_value))
|
.send((tracked_path.clone(), tree_value))
|
||||||
.ok();
|
.ok();
|
||||||
}
|
}
|
||||||
file_states_tx.send((tracked_path, new_file_state)).ok();
|
if new_file_state != current_file_state {
|
||||||
|
file_states_tx.send((tracked_path, new_file_state)).ok();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -892,7 +894,9 @@ impl TreeState {
|
|||||||
if let Some(tree_value) = update {
|
if let Some(tree_value) = update {
|
||||||
tree_entries_tx.send((path.clone(), tree_value)).ok();
|
tree_entries_tx.send((path.clone(), tree_value)).ok();
|
||||||
}
|
}
|
||||||
file_states_tx.send((path, new_file_state)).ok();
|
if Some(&new_file_state) != maybe_current_file_state {
|
||||||
|
file_states_tx.send((path, new_file_state)).ok();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user