From f6b5c1d9560430628f400a937b0c387f42d27d76 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Mon, 6 Apr 2020 23:19:29 -0700 Subject: [PATCH] Add .gitattributes so GitHub gets the language right. GitHub uses https://github.com/github/linguist to do language stats. linguist however mis-detects a bunch of things in this repo. It also needs to be told about the "vendored" files in the repo. This can be fixed by setting values via `.gitattributes` file which is done here. Before ``` 74.90% Coq 13.42% Python 3.71% C++ 3.62% Tcl 1.42% Makefile 1.26% Verilog 0.73% JavaScript 0.62% Shell 0.10% HTML 0.08% XSLT 0.07% CMake 0.03% Assembly 0.02% Ruby 0.01% Dockerfile ``` After ``` 42.45% Python 25.18% Verilog 12.00% C++ 10.96% Tcl 4.07% Makefile 2.34% JavaScript 1.99% Shell 0.34% HTML 0.26% XSLT 0.22% CMake 0.09% Assembly 0.08% Ruby 0.03% Dockerfile ``` Signed-off-by: Tim 'mithro' Ansell --- .gitattributes | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..b03f4cfc --- /dev/null +++ b/.gitattributes @@ -0,0 +1,12 @@ +# Settings to improve linguist data reporting (used by GitHub) +*.v linguist-language=Verilog +*.vh linguist-language=Verilog + +database/** linguist-generated +third_party/** linguist-vendored + +# FIXME: All vendor files should be under third_party +minitests/litex/** linguist-vendored +minitests/litex_litedram/** linguist-vendored +minitests/picorv32-v/** linguist-vendored +minitests/picorv32-y/** linguist-vendored