jj/lib
Yuya Nishihara 92cfffd843 git: on external HEAD move, do not abandon old branch
The current behavior was introduced by 20eb9ecec1 "git: don't abandon
HEAD commit when it loses a branch." While the change made HEAD mutation
behavior more consistent with a plain ref operation, HEAD can also move on
checkout, and checkout shouldn't be considered a history rewriting operation.

I'm not saying the new behavior is always correct, but I think it's safer
than losing old HEAD branch. I also think this change will help if we want
to extract HEAD management function from git::import_refs().

Fixes #1042.
2023-05-11 10:15:31 +09:00
..
benches
gen-protos cargo: bump prost-build from 0.11.8 to 0.11.9 2023-04-14 16:11:09 +00:00
src git: on external HEAD move, do not abandon old branch 2023-05-11 10:15:31 +09:00
tests git: on external HEAD move, do not abandon old branch 2023-05-11 10:15:31 +09:00
testutils cargo: bump git2 from 0.17.0 to 0.17.1 2023-04-17 09:19:58 -07:00
build.rs
Cargo.toml lib: use advisory locks on Unix targets 2023-05-07 09:52:09 -07:00