jj/cli
Yuya Nishihara eb332b1d08 cli: make for_loaded_repo() callers specify whether repo/workspace are synced
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.
2024-07-24 18:06:09 +09:00
..
examples cli: uncapitalize op description of "workspace add" and custom command example 2024-07-24 18:06:09 +09:00
src cli: make for_loaded_repo() callers specify whether repo/workspace are synced 2024-07-24 18:06:09 +09:00
testing cli: skip formatting instructions if not required 2024-07-09 20:24:14 -05:00
tests cli: fix "workspace add --at-op" to set up new working copy properly 2024-07-24 18:06:09 +09:00
build.rs build: update rerun-if conditions to watch .git/HEAD in colocated repo 2023-08-06 12:16:11 +09:00
Cargo.toml cli: remove unused dependency on gix-filter 2024-07-17 11:53:51 +02:00
LICENSE cargo: add LICENSE file to each crate we publish 2023-09-22 21:48:28 -07:00