From 8332969b10f231a827d062f0b9941b33da62ca5c Mon Sep 17 00:00:00 2001 From: Alecto Irene Perez Date: Mon, 1 Nov 2021 17:28:20 -0600 Subject: [PATCH] Mark data/themes.json as a binary file This adds a .gitattributes file that marks data/themes.json as binary. data/themes.json stores all it's data on a single line, and that entire line is marked as changed between commits. By marking it as binary, git displays diffs more accurately. NB: As an alternative to marking it as binary, we could also modify tools/generate.sh so that it doesn't generate the entire file on one line. This can be done by removing the `tr -d " \t\n\r"` portion of the script. Doing so would ensure that git only stored the sections of the themes.json file that changed when a theme was modified or added. Signed-off-by: Alecto Irene Perez --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9a467c3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +data/themes.json binary