{"version":"2.1.248","anchor":"directory-sync-skips-git-work-when-nothing-has-changed","canonical_anchor":"directory-sync-skips-git-work-when-nothing-has-changed","heading":"Directory sync skips git work when nothing has changed","tier":"notice","area":"Directory Sync","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/directory-sync-skips-git-work-when-nothing-has-changed","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Directory sync skips git work when nothing has changed\n\nRepeated syncs on an unchanged repo are faster because two git commands are skipped.\n\n**What**\n\nTaking a snapshot of your working tree now detects the case where everything is already clean and skips two git commands entirely, reusing the existing index instead. Repeated syncs on an untouched repo are faster.\n\n**Details**\n\n- The `--refresh` and `write-tree` invocations are skipped when the clean condition holds.\n- The snapshot records the index tree it reused and whether the tree was clean.\n\n**Evidence**\n\n`indexStatClean: ae.length === 0`\n\n- Area: Directory Sync\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5"}