Is it possible to exclude files from git language statistics?

前端 未结 2 396
情话喂你
情话喂你 2021-01-01 11:57

Silly question and not on something that is so necessary, but is it possible to exclude files from git language statistics aggregation on top?

I have checked some ex

2条回答
  •  迷失自我
    2021-01-01 12:29

    By default, Linguist treats all of the paths defined in vendor.yml as vendored and therefore doesn't include them in the language statistics for a repository.

    Use the linguist-vendored attribute to vendor or un-vendor paths.

    $ cat .gitattributes
    special-vendored-path/* linguist-vendored
    jquery.js linguist-vendored=false
    

提交回复
热议问题