Skip to content

Unity repository detected as ShaderLab instead of C# #6682

Closed Answered by lildude
wapcrazut asked this question in Classification
Discussion options

You must be logged in to vote

Your current override isn't sufficient. It's only covering the files directly in that directory. You need to use /** to recurse into the sub-directories.

From the .gitattributes doc:

The rules by which the pattern matches paths are the same as in .gitignore files (see gitignore[5]), with a few exceptions:

  • negative patterns are forbidden
  • patterns that match a directory do not recursively match paths inside that directory (so using the trailing-slash path/ syntax is pointless in an attributes file; use path/** instead)

From the .gitignore doc:

An asterisk "*" matches anything except a slash. The character "?" matches any one character except "/". The range notation, e.g. [a-zA-Z], can …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wapcrazut
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants