aboutsummaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-19 14:51:09 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-20 17:31:22 -0300
commit58c71f8d481750241239b3f2d3e5cd7aaa155a94 (patch)
tree05b98baad1ff8450d53b30548ae43e5ecbb9c9c1 /.gitattributes
parentTrim trailing whitespace (diff)
downloadfirejail-58c71f8d481750241239b3f2d3e5cd7aaa155a94.tar.gz
firejail-58c71f8d481750241239b3f2d3e5cd7aaa155a94.tar.zst
firejail-58c71f8d481750241239b3f2d3e5cd7aaa155a94.zip
Add .editorconfig with basic rules for all files
This should make it easier to avoid whitespace errors, as long as the editor used supports it (either natively or through a plugin). See the editorconfig website for the editors that support it: * https://editorconfig.org Note: All text files appear to already be using LF and UTF-8 (or ASCII): $ git ls-files --eol | grep -v -e '^i/lf w/lf' \ -e 'i/none w/none' -e 'i/-text w/-text' i/ w/ attr/text=auto eol=lf ci/check/profiles/sort.py $ git ls-files -z | xargs -0 file -i -h | sed 's/[^:]*: *//' | grep -v -e 'charset=binary' -e 'charset=us-ascii' | LC_ALL=C sort | uniq -c 1 text/html; charset=utf-8 2 text/plain; charset=utf-8 1 text/x-c; charset=utf-8
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 6b329f917..e6f32abc0 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1 +1,3 @@
1* text=auto eol=lf
2
1/etc/inc/*.inc linguist-language=text 3/etc/inc/*.inc linguist-language=text