From d71702c9fc4c5327b70f23ab8304d0f61984e8fa Mon Sep 17 00:00:00 2001 From: Greg Price Date: Mon, 6 Dec 2021 10:56:22 -0800 Subject: [PATCH] git: Suppress diffs by default on giant Stripe API fixtures Before: $ git log -p -1 88fd399bec5a321e4688834784eaecb18a929235 | wc 50015 134879 2016086 After: $ git log -p -1 88fd399bec5a321e4688834784eaecb18a929235 | wc 1554 6624 229028 $ git log -a -p -1 88fd399bec5a321e4688834784eaecb18a929235 | wc 50015 134879 2016086 Also add some organization and explanatory comments to this file, following what we have in zulip-mobile:.gitattributes . --- .gitattributes | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitattributes b/.gitattributes index 4720eb2aa5..195981d296 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,19 @@ +# DIFFS: Noise suppression. +# +# Suppress noisy generated files in diffs. +# (When you actually want to see these diffs, use `git diff -a`.) + +# Large test fixtures: +corporate/tests/stripe_fixtures/*.json -diff + + +# FORMATTING + +# Maintain LF (Unix-style) newlines in text files. * text=auto eol=lf + +# Make sure various media files never get somehow auto-detected as text +# and then newline-converted. *.gif binary *.jpg binary *.jpeg binary