mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-31 16:40:22 +00:00
1fc19dbbaf
The working copy object knows the currently checked out commit ID. It is set to `None` when the object is initialized. It is also set to `None` when an existing working copy is loaded. In that case, it's used only to facilitate lazy loading. However, that means that `WorkingCopy::current_commit_id()` fails if the working copy has been initalized but no checkout has been specified. I've never run into that case, but it's ugly that it can happen. This patch fixes it by having `WorkingCopy::init()` take a `CommitId`. |
||
---|---|---|
.. | ||
benches | ||
protos | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml |