mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-27 06:27:43 +00:00
25d19e8a65
This patch changes the interface for making changes to the working copy by replacing `write_tree()` and `untrack()` by a single `start_mutation()` method. The two functions now live on the returned `LockedWorkingCopy` object instead. That is more flexible because the caller can make multiple changes while the working copy is locked. It also helps us reduce the risk of buggy callers that read the commit ID before taking the lock, because we can now make it accessible only on `LockedWorkingCopy`. |
||
---|---|---|
.. | ||
benches | ||
protos | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml |