A branch-scoped repository write guard must recognize Git’s transient detached-HEAD states…
A branch-scoped repository write guard must recognize Git’s transient detached-HEAD states during rebase and map them back to the recorded branch; otherwise it can deadlock recovery by blocking both conflict-resolution commands and rebase abort. This applies when the rebase metad…