ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli
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
..
examples workspace: combine working copy functions into a trait 2024-01-25 11:46:07 -08:00
src git: extract Git HEAD handling bits from import_some_refs() 2024-01-27 00:01:59 +09:00
testing
tests cli: move jj workspace root to `jj root, for discoverability 2024-01-25 16:31:44 -05:00
build.rs
Cargo.toml revset: add count_estimate() to Revset trait 2024-01-22 15:07:00 -08:00
LICENSE