{"version":"2.1.281","anchor":"git-diff-stats-and-untracked-file-lists-can-now-be-confined","canonical_anchor":"git-diff-stats-and-untracked-file-lists-can-now-be-confined","heading":"Git diff stats and untracked-file lists can now be confined to the repository root with an isolated git environment","tier":null,"area":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/git-diff-stats-and-untracked-file-lists-can-now-be-confined","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Git diff stats and untracked-file lists can now be confined to the repository root with an isolated git environment\n\nGit diff stats and untracked-file listing can now run pinned to the repository root with an isolated environment and filtered paths\n\n**Unclear.** The finding does not say which features pass a repository to these helpers.\n\n**What**\n\nThe helpers that ask git for change counts, the base to compare against, and the list of untracked files (files git is not yet tracking) can now be given a repository. When they are, git runs with its own settings that fix the working folder and the git data folder to that repository's root, and it does not inherit other environment settings.\n\nThe returned file paths are then filtered in `within-root` mode, which drops:\n\n- absolute paths\n\n- drive letters\n\n- `..` segments, which point to a parent folder\n\n- malformed rename entries\n\n**Why**\n\nWhen this is used, results stay inside the repository and are not affected by outside git settings."}