Skip to content

Commit 20a7043

Browse files
committed
Assign attributes for specific paths
The aim of this commit is to indicate to GitHub's linguist how to handle specific filepaths. For instance, linguist is configured to interpret anything under the `node_modules` directory as a "vendor" dependency, which is not true for this project.
1 parent 097e094 commit 20a7043

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.gitattributes

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1+
# Configuration file which assigns attributes to pathnames.
2+
#
3+
# [1]: https://git-scm.com/docs/gitattributes
4+
5+
# Automatically normalize the line endings of any committed text files:
16
* text=auto
7+
8+
# Override what is considered "vendored" by GitHub's linguist:
9+
/deps/** linguist-vendored=false
10+
/lib/node_modules/** linguist-vendored=false
11+
/test/fixtures/** linguist-vendored=false
12+
/tools/** linguist-vendored=false
13+
14+
# Override what is considered "documentation" by GitHub's linguist:
15+
/examples/** linguist-documentation=false

0 commit comments

Comments
 (0)