summaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-05-18 19:11:42 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-05-18 22:36:29 +1000
commit190577d4e79974547538b81e8b699b1b16aa4553 (patch)
tree7fb9ad2c0d871d6968371c553f5b23ce27c547ba /.editorconfig
parent1f689421e7815f5c9e5c1046ae68d97e20612c76 (diff)
.editorconfig: ignore diffs/patches
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig10
1 files changed, 6 insertions, 4 deletions
diff --git a/.editorconfig b/.editorconfig
index 717a4d903bbc..66cd7b8f4746 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -11,6 +11,12 @@ insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
+# Ignore diffs/patches
+[*.{diff,patch}]
+end_of_line = ignore
+insert_final_newline = ignore
+trim_trailing_whitespace = ignore
+
# see https://nixos.org/nixpkgs/manual/#chap-conventions
# Match nix/perl/python/ruby/shell/docbook files, set indent to spaces
@@ -28,7 +34,3 @@ indent_size = 2
# Match perl/python/shell scripts, set indent width of four
[*.{pl,py,sh}]
indent_size = 4
-
-# Match diffs, avoid to trim trailing whitespace
-[*.{diff,patch}]
-trim_trailing_whitespace = false