Skip to content

Commit d050acf

Browse files
authored
Merge pull request libgit2#4653 from stinb/junction-point-diff-from-git
Added note about Windows junction points to the differences from git document
2 parents f9cf9a0 + d54c34a commit d050acf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/differences-from-git.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ The same difference exists when listing worktrees:
1818
git worktree list -> /home/user/projects/libgit2
1919
git_repository_workdir(repo) -> /home/user/projects/libgit2/
2020
```
21+
22+
Windows Junction Points
23+
-----------------------
24+
25+
In libgit2, junction points are treated like symbolic links. They're handled specially in `git_win32__file_attribute_to_stat` in `src/win/w32_util.h`. This means that libgit2 tracks the directory itself as a link.
26+
27+
In Git for Windows, junction points are treated like regular directories. This means that Git for Windows tracks the contents of the directory.

0 commit comments

Comments
 (0)