summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2018-12-03 11:32:26 -0800
committerBert Belder <bertbelder@gmail.com>2018-12-03 11:34:17 -0800
commit6aa02f1fd9ea5e24c82b8edb865898063a39a765 (patch)
treede5e76d1594d8ef2d82a6d7a66f4429f5170dcc1 /.gitattributes
parente5d1ac8074c13556c6d6a971c0b768b23a06ae20 (diff)
.gitattributes: add symlink target types
This is a first step toward removing the fix_symlinks() hack from tools/third_party.py.
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes6
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 3c53eb39d..cd4c83ed0 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,2 +1,8 @@
# Use Unix line endings in all text files.
* text=auto eol=lf
+
+# Tell git which symlinks point to files, and which ones point to directories.
+# This is revelevant for Windows only, and requires git >= 2.19.2 to work.
+/* symlink=dir
+/website/* symlink=dir
+/tools/clang symlink=dir