summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-11-17 15:38:28 +0300
committerrinpatch <rinpatch@sdf.org>2020-11-17 15:38:28 +0300
commit9960383925aae6389d1e5730f47f4fb637f363e9 (patch)
tree6a5caee04221c030cdaf768046d1cfc70ee29c3b /.gitattributes
parenta81f0a4a7dd0e9f84662b0868b42df3e3f399287 (diff)
.gitattributes: Treat js/css/source maps as binary files
This prevents `git grep` from showing the matching line and diffs from being shown by default.
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes6
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index c46415a5c..68895bf88 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,2 +1,8 @@
*.ex diff=elixir
*.exs diff=elixir
+# At the time of writing all js/css files included
+# in the repo are minified bundles, and we don't want
+# to search/diff those as text files.
+*.js binary
+*.js.map binary
+*.css binary