Skip to content

Remove a indexed file from “Languages” on first page #5175

Answered by lildude
pownas asked this question in Classification
Discussion options

You must be logged in to vote

I'll answer in both places with the same response:

You've got the right idea and the right Linguist overrides (either will do the trick). The problem is your path matching isn't quite right.

From the .gitattributes docs

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

If we look in the .gitignore docs (emphasis is mine):

An asterisk "*" matches anything except a slash. The character "?" matches any one character except "/". The range notation, e.g. [a-zA-Z], can be used to match one of the characters in a range. See fnmatch(3) and the FNM_PATHNAME flag for a more detailed description.

Two consecutive aster…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pownas
Comment options

@lildude
Comment options

Answer selected by pownas
Comment options

You must be logged in to vote
5 replies
@lildude
Comment options

@pownas
Comment options

@lildude
Comment options

@lildude
Comment options

@pownas
Comment options

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