Skip to content

Commit 2ab6550

Browse files
committed
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
1 parent e347170 commit 2ab6550

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/user/project/repository/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ minutes.
166166
![Repository Languages bar](img/repository_languages.png)
167167

168168
Not all files are detected, among others; documentation,
169-
vendored code, and most markup languages are excluded.
169+
vendored code, and most markup languages are excluded. This behaviour can be
170+
adjusted by overriding the default. For example, to enable `.proto` files to be
171+
detected, add the following to `.gitattributes` in the root of your repository.
172+
173+
> *.proto linguist-detectable=true
170174
171175
## Compare
172176

0 commit comments

Comments
 (0)