o2sh / onefetch

Command-line Git information tool

Home Page:https://onefetch.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse .gitattributes

AUnicornWithNoLife opened this issue Β· comments

Summary πŸ’‘

.gitattributes overides what language a file extension is mapped to

example (from a unity project):

*.compute linguist-language=HLSL
*.shader linguist-language=HLSL

Motivation πŸ”¦

onefetch should be accurate to the repository's structure, and should report data in the same way github does

I do agree that we need some form of overrides. Especially as long as we use tokei. But, unless we use data sourced directly from linguist, I don't think we should use the linguist overrides.

BTW, gengo (#1152) can take overrides from .gitattributes πŸ˜‰