mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-17 13:14:26 +00:00
It's wrong to deduce loaded_at_head from command-line arguments if the repo was loaded at an arbitrary operation. Instead, the caller should specify whether the working copy state is synchronized with the repo view. I think .for_loaded_repo(ui, workspace, repo, true) would be bad for readability, so I added separate functions. I'm not happy with the name .for_temporary_repo(), but it seems okay for the current call sites.