# Update cached branch list after branch checkout · flambo/t3code

[View on GitCafe](https://git.cafe/flambo/t3code/commit/ee56d5b6c85c5ed7b130f362c9215f4f71ddf8fd)

Repository: [flambo/t3code](https://git.cafe/flambo/t3code)

Visibility: public

Requested revision: ee56d5b6c85c5ed7b130f362c9215f4f71ddf8fd

Requested commit: ee56d5b6c85c5ed7b130f362c9215f4f71ddf8fd

Commit: ee56d5b6c85c5ed7b130f362c9215f4f71ddf8fd

Tree: 7b455f3f7f70a85bbcc4cec6a04a3433d2a17ec4

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
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

```

## Parents

- [6708fe996ac144e606abd8645530ea0d7023d42d](https://git.cafe/flambo/t3code/commit/6708fe996ac144e606abd8645530ea0d7023d42d?format=markdown)

[Source at this commit](https://git.cafe/flambo/t3code/tree/ee56d5b6c85c5ed7b130f362c9215f4f71ddf8fd?format=markdown)
