radicle: Split `WriteRepository::set_head` up
The method set_head did two things:
- Compute the canonical head and set the default branch to target.
- Set the symbolic reference
HEADto target the default branch.
Split these two concerns into:
set_default_branch_to_canonical_headset_head_to_default_branch
The method set_head did two things:
- Compute the canonical head and set the default branch to target.
- Set the symbolic reference
HEADto target the default branch.
Split these two concerns into:
set_default_branch_to_canonical_headset_head_to_default_branch
There are ’todo!()’s in the code still, not sure whether this is intended.
The one todo!() is added intentionally.
Work in Matthias’ suggestion and rebase.
Moving this back to draft, as I included it in patch/63b4e1d9046a2af75401f74234d7fc18b447109d and am not sure it will be needed after all.