jj/lib
Martin von Zweigbergk 2172887876 git: don't detach head if the ref already points to the right place
The first time we export to Git, we don't actually export
anything. That's a little weird and I don't know why I did it that
way. It seems more natural to export the current state. I'd like to
change it to do that. However, that currently means we'll detach the
current HEAD if it points to any of the branches we export. This patch
restructures the code a bit and skips the detach step if the target
branch already points to the right commit.
2022-11-13 15:06:10 -08:00
..
src git: don't detach head if the ref already points to the right place 2022-11-13 15:06:10 -08:00
tests
testutils
build.rs
Cargo.toml