Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create .gitattributes to fix GitHub Languages #194

Merged
merged 1 commit into from
Oct 21, 2021
Merged

Create .gitattributes to fix GitHub Languages #194

merged 1 commit into from
Oct 21, 2021

Conversation

storopoli
Copy link
Contributor

This is a Julia Package and if you take a look at the repository at GitHub it shows as a TeX main repository:
image

This PR creates a .gitattributes file that marks .bib and .tex files as text and all documentation inside the docs/ folder as text.

@juliohm
Copy link
Member

juliohm commented Oct 21, 2021

That is lovely @storopoli ❤️ didn't know about this trick. The GitHub percentage annoyed me multiple times.

@storopoli
Copy link
Contributor Author

storopoli commented Oct 21, 2021

We did this in https://github.com/JuliaDataScience/JuliaDataScience. It might take a few quirks and tries. But I think this one in the PR will be a first-try hit.

@juliohm
Copy link
Member

juliohm commented Oct 21, 2021

Amazing efforts! Will take a look! 💯

@storopoli
Copy link
Contributor Author

Also this documentation is helpful: https://www.git-scm.com/docs/gitattributes

@juliohm juliohm merged commit 91a33db into JuliaEarth:master Oct 21, 2021
@storopoli
Copy link
Contributor Author

If it did not work you can try, intead of text, for all the lines:

*.bib linguist-generated

@juliohm
Copy link
Member

juliohm commented Oct 21, 2021

Does it take some time for the changes to take effect?

@storopoli
Copy link
Contributor Author

Not that many. You can see that it took some tries by the JuliaDataScience git blame on .gitattributes: https://github.com/JuliaDataScience/JuliaDataScience/blame/main/.gitattributes

@storopoli
Copy link
Contributor Author

Yes, linguist-generated is the way to go. Sorry about the error. Let me create another PR 😞

@storopoli storopoli deleted the fix-github-language branch October 21, 2021 19:08
@storopoli storopoli restored the fix-github-language branch October 21, 2021 19:08
juliohm added a commit that referenced this pull request Jan 7, 2022
Create .gitattributes to fix GitHub Languages

Former-commit-id: 91a33db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants