ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib
Yuya Nishihara fc114ef217 git: extract Git HEAD handling bits from import_some_refs()
I'm going to make WorkspaceCommandHelper::maybe_snapshot() snapshot the working
copy before importing refs. git::import_some_refs() can rebase the working copy
branch and therefore @ can be moved. git::import_head() doesn't, and it should
be invoked before snapshotting.

git::import_head() is inserted to some of the git:import_refs() callers where
HEAD seems to matter. I feel it's a bit odd that the HEAD ref is imported to
non-colocated repo, but "jj init --git-repo" relies on that, and I think the
existence of HEAD@git is harmless. It's merely a ref to the revision checked
out somewhere else.
2024-01-27 00:01:59 +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: extract Git HEAD handling bits from import_some_refs() 2024-01-27 00:01:59 +09:00
tests git: extract Git HEAD handling bits from import_some_refs() 2024-01-27 00:01:59 +09:00
testutils object_id: extract ObjectId trait and macros to separate module 2024-01-05 10:20:57 +09:00
Cargo.toml revset: add count_estimate() to Revset trait 2024-01-22 15:07:00 -08:00
LICENSE cargo: add LICENSE file to each crate we publish 2023-09-22 21:48:28 -07:00