Skip to content

Git Attribute overrides examples - why are some linguist override examples prefixed with -? #6248

Answered by lildude
aSemy asked this question in Classification
Discussion options

You must be logged in to vote

I couldn't find any explanation in the docs

You're probably not looking in the right docs 😉.

This is standard .gitattributes notation so you should be looking at that documentation. From the .gitattributes documentation:

Unset

The path has the attribute with special value "false"; this is specified by listing the name of the attribute prefixed with a dash - in the attribute list.

So the - is correct. Linguist also supports a non-standard Linguist-specific approach of linguist-detectable=false but we're discouraging this use in favour of the use people expect from their other .gitattributes usage.

If there is a difference between linguist-detectable and -linguist-detectable, what is i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aSemy
Comment options

Answer selected by aSemy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants