summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-08-11 23:09:39 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-08-11 23:10:29 -0700
commitf611c5be210a552256799ee95ef72a74efbfdd1d (patch)
tree1ece1ea619e3309a3a63ae89e0b854450d16c08e /.gitattributes
parentbe3cae9f559015219af07dd63170dded2fb64056 (diff)
downloademacs-f611c5be210a552256799ee95ef72a74efbfdd1d.tar.gz
Update lists of non-UTF files
* .gitattributes: Don't diff text files with encodings incompatible with UTF-8. Add some new binary file extensions, like '.webp'. etc/e/eterm-direct and java/emacs.keystore are also binary. * admin/notes/unicode: Update similarly.
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes28
1 files changed, 24 insertions, 4 deletions
diff --git a/.gitattributes b/.gitattributes
index d9288b27d0f..b56f0ec617d 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -17,13 +17,11 @@
# You should have received a copy of the GNU General Public License
# along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
-# A few files use CRLF endings, even on non-Microsoft platforms.
+# A few UTF-8-compatible text files use CRLF endings,
+# even on non-Microsoft platforms.
# Do not warn about trailing whitespace with these files.
*.bat whitespace=cr-at-eol
admin/charsets/mapfiles/PTCP154 whitespace=cr-at-eol
-leim/MISC-DIC/cangjie-table.b5 whitespace=cr-at-eol
-leim/MISC-DIC/cangjie-table.cns whitespace=cr-at-eol
-leim/MISC-DIC/pinyin.map whitespace=cr-at-eol
test/manual/etags/c-src/dostorture.c whitespace=cr-at-eol
test/manual/etags/cp-src/c.C whitespace=cr-at-eol
test/manual/etags/html-src/algrthms.html whitespace=cr-at-eol
@@ -31,19 +29,41 @@ test/manual/etags/html-src/algrthms.html whitespace=cr-at-eol
# The todo-mode file format includes trailing whitespace.
*.tod[aorty] -whitespace=blank-at-eol
+# The following text files use encodings incompatible with UTF-8.
+# They should not be treated as text when diffing, as that could
+# cause the output to mix encodings.
+*.tit -diff
+admin/charsets/mapfiles/cns2ucsdkw.txt -diff
+leim/MISC-DIC/CTLau* -diff
+leim/MISC-DIC/cangjie-table.* -diff
+leim/MISC-DIC/pinyin.map -diff
+leim/MISC-DIC/ziranma.cin -diff
+leim/SKK-DIC/SKK-JISYO.L -diff
+src/msdos.c -diff
+test/lisp/gnus/mm-decode-resources/win1252-multipart.bin -diff
+
# Some files should not be treated as text when diffing or merging.
+*.bmp binary
*.cur binary
+*.gif binary
*.gpg binary
*.gz binary
*.icns binary
*.ico binary
+*.jpg binary
+*.kbx binary
+*.key binary
*.pbm binary
*.pdf binary
*.pif binary
*.png binary
*.sig binary
*.tiff binary
+*.webp binary
+*.zip binary
etc/e/eterm-color binary
+etc/e/eterm-direct binary
+java/emacs.keystore binary
# Git's builtin diff hunk header styles.
*.ad[abs] diff=ada