Title: Windows junctions produce false deletions and invalid diffs · Issue #2194 · libgit2/libgit2sharp · GitHub
Open Graph Title: Windows junctions produce false deletions and invalid diffs · Issue #2194 · libgit2/libgit2sharp
X Title: Windows junctions produce false deletions and invalid diffs · Issue #2194 · libgit2/libgit2sharp
Description: LibGit2Sharp 0.32.0 with libgit2 1.8.6 does not traverse NTFS directory junctions inside a working tree. In one of my actual repositories containing five junctions: git.exe status reports 7 correct changes Repository.RetrieveStatus() rep...
Open Graph Description: LibGit2Sharp 0.32.0 with libgit2 1.8.6 does not traverse NTFS directory junctions inside a working tree. In one of my actual repositories containing five junctions: git.exe status reports 7 correct...
X Description: LibGit2Sharp 0.32.0 with libgit2 1.8.6 does not traverse NTFS directory junctions inside a working tree. In one of my actual repositories containing five junctions: git.exe status reports 7 correct...
Opengraph URL: https://github.com/libgit2/libgit2sharp/issues/2194
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Windows junctions produce false deletions and invalid diffs","articleBody":"LibGit2Sharp 0.32.0 with libgit2 1.8.6 does not traverse NTFS directory junctions inside a working tree.\n\nIn one of my actual repositories containing five junctions:\n- `git.exe status` reports 7 correct changes\n- `Repository.RetrieveStatus()` reports 2,794 entries\n- Junction roots are reported as `NewInWorkdir`\n- 2,774 tracked files below them are falsely reported as `DeletedFromWorkdir`\n- `Diff.Compare\u003cPatch>()` reports a modified junction backed file as a complete deletion to `/dev/null`, while `git.exe diff` produces the correct modification\n\nThis appears related to #1726, but also affects tracked descendants, status, diff, and staging.\nCore Git for Windows handles the same junctions correctly.\n\nEnvironment:\n\n- Windows 10 x64, build 19045\n- NTFS\n- Git for Windows 2.47.1\n- .NET SDK 10.0.301\n- LibGit2Sharp 0.32.0\n- bundled libgit2 1.8.6\n- `core.symlinks=false`\n- `core.ignorecase=true`\n- Junction and target are on the same NTFS volume\n- Junction has Windows attributes `Directory, ReparsePoint`\n\nStatus options:\n\n```csharp\nrepository.RetrieveStatus(new StatusOptions\n{\n IncludeIgnored = false,\n IncludeUnaltered = false,\n IncludeUntracked = true,\n RecurseUntrackedDirs = true,\n DetectRenamesInIndex = true,\n DetectRenamesInWorkDir = false\n});\n```\n\nThe junction itself is not tracked, because Git does not track directories. Files below the junction are tracked. Core Git correctly treats them as ordinary working-tree files; libgit2 reports the junction root as untracked and its tracked descendants as deleted.\n","author":{"url":"https://github.com/liqube","@type":"Person","name":"liqube"},"datePublished":"2026-10-07T11:27:50Z","url":"https://github.com/libgit2/libgit2sharp/issues/2194"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f9fde2e0-7f7f-7993-0655-d2a7c114a372 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A43C:15BFB5:19F534:233CD1:6AFD4F5C |
| html-safe-nonce | 8e6af38f91b41374f063020bd705c3e9bd5cccb5e08129744742da23d5b355fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDNDOjE1QkZCNToxOUY1MzQ6MjMzQ0QxOjZBRkQ0RjVDIiwidmlzaXRvcl9pZCI6IjE5NzIwMjkxMDc1NjI0MzQzOTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 341bb3999b815d64be3c45625b723c7cfc89354a1461e85db1ff33139cdba37b |
| hovercard-subject-tag | issue:5744142719 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/libgit2/libgit2sharp/2194/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad95908f2f7dd3067ae5e1b704f6a66a423224a6a9c81e1846f3b902a67a5e25/libgit2/libgit2sharp/issues/2194 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad95908f2f7dd3067ae5e1b704f6a66a423224a6a9c81e1846f3b902a67a5e25/libgit2/libgit2sharp/issues/2194 |
| og:image:alt | LibGit2Sharp 0.32.0 with libgit2 1.8.6 does not traverse NTFS directory junctions inside a working tree. In one of my actual repositories containing five junctions: git.exe status reports 7 correct... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | liqube |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/libgit2/libgit2sharp git https://github.com/libgit2/libgit2sharp.git |
| octolytics-dimension-user_id | 394745 |
| octolytics-dimension-user_login | libgit2 |
| octolytics-dimension-repository_id | 1415168 |
| octolytics-dimension-repository_nwo | libgit2/libgit2sharp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1415168 |
| octolytics-dimension-repository_network_root_nwo | libgit2/libgit2sharp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width