ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib
Yuya Nishihara 36ee24379b git: build separate lists of git/remote refs to be imported
The idea is that the "remote" refs could have been "op restore"-d whereas
view.git_refs() will never be. The next commit will update known_remote_refs
to be constructed from the current remote branches.

Instead of building these lists in a single loop, we could load new git_refs
to the view first, and then build diffs of the remote refs. I considered that,
but I feel it would be a bit awkward to update refs before importing commits
to the view.

The "remote" refs are stored in BTreeMap since merging order should be stable.
2023-10-09 22:31:20 +09:00
..
benches
gen-protos Use { workspace = true } to appease VS Code's Cargo.toml parser 2023-08-22 21:38:53 -07:00
src git: build separate lists of git/remote refs to be imported 2023-10-09 22:31:20 +09:00
tests working_copy: don't crash when updating and tracked file exits on disk 2023-10-07 14:02:31 -07:00
testutils backend: make read functions async 2023-10-08 23:36:49 -07:00
Cargo.toml backend: make read functions async 2023-10-08 23:36:49 -07:00
LICENSE cargo: add LICENSE file to each crate we publish 2023-09-22 21:48:28 -07:00