{"version":"2.1.280","anchor":"default-diff-base-for-git-worker-standing-sync-changed-fro","canonical_anchor":"default-diff-base-for-git-worker-standing-sync-changed-fro","heading":"New 'branch-point' diff mode for stats and sync","tier":"internal","area":"Directory Sync","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/default-diff-base-for-git-worker-standing-sync-changed-fro","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### New 'branch-point' diff mode for stats and sync\n\nDiff stats can now be computed against a branch's merge-base via a new branch-point mode, now used by default for directory sync\n\n**What**\n\n- The diff-stats resolver used for working-tree and context-usage calculations gains a 'branch-point' mode, which computes stats against the merge-base of the current branch rather than only supporting the existing 'uncommitted' diff against HEAD.\n\n- The directory-sync git worker's standing check now explicitly requests the 'branch-point' mode instead of the previous default 'auto' mode.\n\n**Why**\n\nComputing diff stats relative to where the branch diverged, rather than only uncommitted changes against HEAD, gives more accurate context-usage and sync stats for work done across multiple commits on a branch.\n\n- Area: Directory Sync\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}