mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-18 02:04:19 +00:00
985555f393
By inlining `wite_commit_internal()` into `write_commit()`, we can avoid redoing some steps when we retry. This includes taking the mutex lock, and reading the tree object and parent commits. It also means that we avoid cloning the input commit object, which we otherwise would even in the non-retrying case. I haven't measured if any of this makes a significant difference, but I think it also slightly simplifies the code, so it doesn't have to. |
||
---|---|---|
.. | ||
gen-protos | ||
src | ||
tests | ||
testutils | ||
build.rs | ||
Cargo.toml |