{"version":"2.1.315","anchor":"git-state-watcher-can-check-files-on-read-instead-of-polling","canonical_anchor":"git-state-watcher-can-check-files-on-read-instead-of-polling","heading":"Git status tracking can check files when read instead of polling them","tier":"internal","area":"Git Integration","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315\/e\/git-state-watcher-can-check-files-on-read-instead-of-polling","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315","markdown":"### Git status tracking can check files when read instead of polling them\n\nClaude Code can now check git files when they are read, instead of repeatedly polling them for changes\n\n**Unclear.** It is not clear what decides which method is used, or whether the new one is used by default.\n\n**What**\n\nClaude Code watches your git repository, for example to notice when you switch branches. Until now it always did this by polling, which means checking files again and again on a timer.\n\nIt can now use a different method. Files are checked when they are read, a timer starts once something subscribes to changes, and the file that records your current branch is watched for changes directly. Which method is used depends on a condition checked while Claude Code runs.\n\n**Why**\n\nThe new method could mean less background work while idle and branch changes showing up sooner.\n\n- Area: Git Integration\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}