Skip to content

Commit d54c34a

Browse files
committed
docs: added note regarding difference in treatment of junction points from git
1 parent f9cf9a0 commit d54c34a

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)