From 9960383925aae6389d1e5730f47f4fb637f363e9 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Tue, 17 Nov 2020 15:38:28 +0300 Subject: [PATCH] .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. --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) 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