# Extract branch sync logic and limit sync to local mode · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/afdfe16931d292ed5de2772ccc1afd95120ff6b2)

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

Visibility: public

Requested revision: afdfe16931d292ed5de2772ccc1afd95120ff6b2

Requested commit: afdfe16931d292ed5de2772ccc1afd95120ff6b2

Commit: afdfe16931d292ed5de2772ccc1afd95120ff6b2

Tree: 451de10e1b889dc4a08b26feedc0e52c1c71949f

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Extract branch sync logic and limit sync to local mode

- move branch-sync decision into `BranchToolbar.logic.ts`
- avoid auto-sync when env mode is `worktree` or thread has worktree path
- add unit tests for sync and no-sync cases

```

## Parents

- [73fa2d66c79eb1351fbae55a81c61e1f7b88c619](https://git.cafe/gitcafe/t3code/commit/73fa2d66c79eb1351fbae55a81c61e1f7b88c619?format=markdown)

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