summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-10-16 12:02:25 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-10-16 12:02:25 +0200
commit2ab65500daea3904098d5df47ae8b1b97d8681ec (patch)
treeb64ad2fb0bf59361d97fad58fac721d7909ffb4e /doc
parente347170cc59dfa1e48de451f7c48ccb65d3e581a (diff)
downloadgitlab-ce-2ab65500daea3904098d5df47ae8b1b97d8681ec.tar.gz
Document linguist overriding
Users report that some languages aren't detected, or at least not reported. This is mostly due to the fact that these languages aren't programming languages, according to Linguist. Originally noted in: https://gitlab.com/gitlab-org/gitlab-ce/issues/50705#note_99600216 Related: https://gitlab.com/gitlab-org/gitlab-ce/issues/51995
Diffstat (limited to 'doc')
-rw-r--r--doc/user/project/repository/index.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/user/project/repository/index.md b/doc/user/project/repository/index.md
index ce79bfc0a03..beff4b89424 100644
--- a/doc/user/project/repository/index.md
+++ b/doc/user/project/repository/index.md
@@ -166,7 +166,11 @@ minutes.
![Repository Languages bar](img/repository_languages.png)
Not all files are detected, among others; documentation,
-vendored code, and most markup languages are excluded.
+vendored code, and most markup languages are excluded. This behaviour can be
+adjusted by overriding the default. For example, to enable `.proto` files to be
+detected, add the following to `.gitattributes` in the root of your repository.
+
+> *.proto linguist-detectable=true
## Compare