Git Attribute overrides examples - why are some linguist override examples prefixed with -
?
#6248
-
Some example usages are prefixed with a minus sign. I'm not sure why this is. I couldn't find any explanation in the docs
tools/export_bom.py -linguist-detectable
# ↑ is this minus correct?
# or should there be no minus?
tools/export_bom.py linguist-detectable If there is a difference between |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You're probably not looking in the right docs 😉. This is standard
So the
Yup. The former sets the attribute (documented just above the "Unset" mentioned above) and the latter unsets the attribute as detailed above. |
Beta Was this translation helpful? Give feedback.
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:So the
-
is correct. Linguist also supports a non-standard Linguist-specific approach oflinguist-detectable=false
but we're discouraging this use in favour of the use people expect from their other.gitattributes
usage.