summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Kulp <darren@kulp.ch>2022-06-02 06:51:43 -0400
committerEmilio Cobos Álvarez <emilio@crisal.io>2022-06-05 19:47:20 +0200
commitaba2c29fd330b005b0e88b4e585bfe0ea86f3d5e (patch)
tree0320e90d0489485c1ba69d4d73fe33198b197b79
parent3b99dd541023059d575da45ac4d71925a65df57d (diff)
Skip input headers in Linguist statistics
[skip ci]
-rw-r--r--bindgen-integration/.gitattributes4
-rw-r--r--tests/.gitattributes4
2 files changed, 8 insertions, 0 deletions
diff --git a/bindgen-integration/.gitattributes b/bindgen-integration/.gitattributes
new file mode 100644
index 00000000..d42187e6
--- /dev/null
+++ b/bindgen-integration/.gitattributes
@@ -0,0 +1,4 @@
+# Tell Github Linguist to avoid counting these C and C++ test inputs toward
+# statistics.
+*.h -linguist-detectable
+*.cc -linguist-detectable
diff --git a/tests/.gitattributes b/tests/.gitattributes
new file mode 100644
index 00000000..96122eb1
--- /dev/null
+++ b/tests/.gitattributes
@@ -0,0 +1,4 @@
+# Tell Github Linguist to avoid counting these C and C++ test inputs toward
+# statistics.
+*.h -linguist-detectable
+*.hpp -linguist-detectable