.gitattributes: Treat js/css/source maps as binary files
authorrinpatch <rinpatch@sdf.org>
Tue, 17 Nov 2020 12:38:28 +0000 (15:38 +0300)
committerrinpatch <rinpatch@sdf.org>
Tue, 17 Nov 2020 12:38:28 +0000 (15:38 +0300)
This prevents `git grep` from showing the matching line and diffs from
being shown by default.

.gitattributes

index c46415a5cc6ad2e81e1649359ad048700e6f4e55..68895bf883004acdbc4f8faa03ae727cd1cb45ae 100644 (file)
@@ -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