mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 14:00:31 +08:00
The method `set_head` does two things: 1. Compute the canonical head and set the default branch to target. 2. Set the symbolic reference `HEAD` to target the default branch. Split these two concerns into: 1. `set_default_branch_to_canonical_head` 2. `set_head_to_default_branch`