feat: POST /branches/{name}/reset — force-move branch head to any known commit
Adds BranchResetRequest/Response models and the reset_branch route so a branch can be pointed at any commit already in the store regardless of history. Used to undo corrupt merge commits (bug #36) without a direct DB operation.
Returns 404 if repo, branch, or target commit is not found. Requires repo:write scope.
Tests: tests/test_branch_reset.py (B1–B5, all GREEN).
sha256:1ffd2124d3da48b2ec5783fad10d65d61de72ce75ad9f488ba7aec458fdd0869
sha
sha256:04d1721300e182340c4a061de11843358ec3ad20d7cb0ac45212eb5063044168
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:1ffd2124d3da48b2ec5783fad10d65d61de72ce75ad9f488ba7aec458fdd0869 --body "your comment"
No comments yet. Be the first to start the discussion.