{"version":"2.1.284","anchor":"git-worktree-identity-check-now-also-compares-the-common-dir","canonical_anchor":"git-worktree-identity-check-now-also-compares-the-common-dir","heading":"Cloud directory sync tracks git repository identity more precisely","tier":"notice","area":"Git","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.284\/e\/git-worktree-identity-check-now-also-compares-the-common-dir","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.284","markdown":"### Cloud directory sync tracks git repository identity more precisely\n\nDirectory sync now records each downloaded apply's written files and upload generation, and compares the shared .git directory's identity\n\n**Unclear.** It is not stated which visible Claude Code feature depends on this comparison.\n\n**What**\n\nCloud directory sync keeps a journal of what it has copied between your machine and a cloud session, and it records which git repository a folder belongs to. A git worktree is an extra working folder that shares one repository. The shared `.git` directory behind them is called the common dir.\n\n- Journal entries in `downApplied`, which record files applied from the cloud to your machine, now include `wrote` (the paths written or removed) and `after` (the upload generation at that time).\n\n- An entry is now matched on both its turn and its generation, not the turn alone.\n\n- The recorded git information in `servedLinked` gains `commonDirId` and `commonDirBorn`.\n\n- When checking whether two recorded git locations are the same repository, Claude Code now also compares `commonDirId` and its creation time if they were recorded, not only the common dir's path.\n\n- As a result, replacing the shared `.git` directory at the same path now counts as a different repository.\n\n**Why**\n\nSync can now tell apart repeated applies of the same turn across different uploads, and it no longer treats a repository that was deleted and recreated at the same path as the same one.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}