summaryrefslogtreecommitdiff
path: root/docs/differences-from-git.md
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-05-25 10:28:15 +0100
committerGitHub <noreply@github.com>2018-05-25 10:28:15 +0100
commitd050acf7857be65cdbf4b60c149619fa15301678 (patch)
tree68461e7a11de83b0ce03567f888e61f7c48832c8 /docs/differences-from-git.md
parentf9cf9a04ba61cba7b1112764dd25c0e4638bed75 (diff)
parentd54c34a77a768ca88f771469dbbea613b313ce3d (diff)
downloadlibgit2-d050acf7857be65cdbf4b60c149619fa15301678.tar.gz
Merge pull request #4653 from stinb/junction-point-diff-from-git
Added note about Windows junction points to the differences from git document
Diffstat (limited to 'docs/differences-from-git.md')
-rw-r--r--docs/differences-from-git.md7
1 files changed, 7 insertions, 0 deletions
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.