Toma Radu-Petrescu
Toma Radu-Petrescu

Reputation: 2262

How to stop Git from tracking language percentage of frameworks?

As you probably know, you can see the percentage of each language used inside a repo on GitHub.

My repository was more than 90% written in Swift, but when I added an external framework (OpenEars), Swift suddenly became 2.8% since the framework is written in other languages and it is big.

Is there a way to stop GitHub from tracking the language of the framework? Or is there a way to convert the framework in something like a binary code in order to stop GitHub from tracking its language?

Thanks.

Upvotes: 1

Views: 87

Answers (1)

jedijs
jedijs

Reputation: 563

You can modify this behaviour with .gitattributes file:

$ cat .gitattributes
special-vendored-path/* linguist-vendored
(your framework) linguist-vendored=false

You can follow this url for more info.

Upvotes: 1

Related Questions