Replies: 1 comment 3 replies
-
The override works perfectly: ➜ git init test
Initialized empty Git repository in /Users/lildude/Downloads/trash/test/.git/
➜ cd test
➜ echo "<html>" > foo.html
➜ git add foo.html
➜ git commit -m 'Add foo'
[main (root-commit) a6c2adb] Add foo
1 file changed, 1 insertion(+)
create mode 100644 foo.html
➜ github-linguist .
100.00% 7 HTML
➜ echo "foo.html linguist-documentation" > .gitattributes
➜ git add .gitattributes # ‼️
➜ git commit -m 'Add override' # ‼️ You probably missed these steps
[main 20b5373] Add override
1 file changed, 1 insertion(+)
create mode 100644 .gitattributes
➜ github-linguist .
➜ I suspect you missed this part from the docs and highlighted above: Line 11 in 39fd5e9 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I have two relevant files in my project root:
foo.html
and.gitattributes
. I want to excludefoo.html
from the linguist's calculation. In.gitattributes
I tried doing the following:In the latter case, when I run
git check-attr linguist-documentation foo.html
it says the attribute is set to true. In neither cases, however, is HTML excluded from linguist's report, i.e. I get the same result with or without the addition of.gitattributes
file.Expected behaviour
HTML should be excluded from the report.
Related discussion
None that I could find.
Additional notes
None.
Beta Was this translation helpful? Give feedback.
All reactions