From d54c34a77a768ca88f771469dbbea613b313ce3d Mon Sep 17 00:00:00 2001 From: Jason Haslam Date: Mon, 21 May 2018 17:04:11 -0600 Subject: [PATCH] docs: added note regarding difference in treatment of junction points from git --- docs/differences-from-git.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/differences-from-git.md b/docs/differences-from-git.md index feec5c115..3f4650806 100644 --- a/docs/differences-from-git.md +++ b/docs/differences-from-git.md @@ -18,3 +18,10 @@ The same difference exists when listing worktrees: git worktree list -> /home/user/projects/libgit2 git_repository_workdir(repo) -> /home/user/projects/libgit2/ ``` + +Windows Junction Points +----------------------- + +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. + +In Git for Windows, junction points are treated like regular directories. This means that Git for Windows tracks the contents of the directory.