Update cached branch list after branch checkout

- add `projectGitBranchesToCurrent` helper to promote the checked-out branch and clear previous current flags
- optimistically update branches query cache in checkout mutations before invalidation
- add tests covering reorder, missing-branch insertion, and undefined cache behavior
ee56d5b6c8Julius Marminge committed on 2/15/2026, 9:00:57 AMparent6708fe9
2 files changedLine totals unavailable