forked from mirrors/jj
2151fd8930
When updating the working copy from one tree to another, if only the executable bit has changed between the two trees, we set the executable bit on the file without touching its contents. The optimization probably gets used quite rarely. Maybe it's even so rarely that it's a pessimization overall. Perhaps its value lies more in that we avoid updating the file's mtime unnecessarily. Either way, I'm about to change this code to use `Merge<Option<TreeValue>>` and that will make this block more complex. I don't think it's worth the complexity even it provides some small benefit sometimes. |
||
---|---|---|
.. | ||
benches | ||
gen-protos | ||
src | ||
tests | ||
testutils | ||
Cargo.toml |