; Exclude more modes in 'global-completion-preview-mode'
[emacs.git] / .gitattributes
blob38cc45f3ee34fe4269c3dd648bc518741ed676fc
1 # Attributes of Emacs files in the Git repository.
3 # Copyright 2015-2024 Free Software Foundation, Inc.
5 # This file is part of GNU Emacs.
7 # GNU Emacs is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # GNU Emacs is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
20 # A few UTF-8-compatible text files use CRLF endings,
21 # even on non-Microsoft platforms.
22 # Do not warn about trailing whitespace with these files.
23 *.bat whitespace=cr-at-eol
24 admin/charsets/mapfiles/PTCP154 whitespace=cr-at-eol
25 test/manual/etags/c-src/dostorture.c whitespace=cr-at-eol
26 test/manual/etags/cp-src/c.C whitespace=cr-at-eol
27 test/manual/etags/html-src/algrthms.html whitespace=cr-at-eol
29 # The todo-mode file format includes trailing whitespace.
30 *.tod[aorty] -whitespace=blank-at-eol
32 # The following text files use encodings incompatible with UTF-8.
33 # They should not be treated as text when diffing, as that could
34 # cause the output to mix encodings.
35 *.tit -diff
36 admin/charsets/mapfiles/cns2ucsdkw.txt -diff
37 leim/MISC-DIC/CTLau* -diff
38 leim/MISC-DIC/cangjie-table.* -diff
39 leim/MISC-DIC/pinyin.map -diff
40 leim/MISC-DIC/ziranma.cin -diff
41 leim/SKK-DIC/SKK-JISYO.L -diff
42 src/msdos.c -diff
43 test/lisp/gnus/mm-decode-resources/win1252-multipart.bin -diff
45 # Some files should not be treated as text when diffing or merging.
46 *.bmp binary
47 *.cur binary
48 *.gif binary
49 *.gpg binary
50 *.gz binary
51 *.icns binary
52 *.ico binary
53 *.jpg binary
54 *.kbx binary
55 *.key binary
56 *.pbm binary
57 *.pdf binary
58 *.pif binary
59 *.png binary
60 *.sig binary
61 *.tiff binary
62 *.webp binary
63 *.zip binary
64 etc/e/eterm-color binary
65 etc/e/eterm-direct binary
66 java/emacs.keystore binary
68 # Git's builtin diff hunk header styles.
69 *.ad[abs] diff=ada
70 *.[Cch] diff=cpp
71 *.cc diff=cpp
72 *.[ch]pp diff=cpp
73 *.hh diff=cpp
74 *.for diff=fortran
75 *.html diff=html
76 *.shtml diff=html
77 *.xml diff=html
78 *.java diff=java
79 *.[HMm] diff=objc
80 *.pas diff=pascal
81 *.perl diff=perl
82 *.pl diff=perl
83 *.php diff=php
84 *.py diff=python
85 *.rb diff=ruby
86 *.tex diff=tex
88 # Hooks for non-default diff hunk headers; see autogen.sh.
89 *.el diff=elisp
90 *.ac diff=m4
91 *.m4 diff=m4
92 *.mk diff=make
93 *[Mm]akefile diff=make
94 Makefile.in diff=make
95 *[-.]sh diff=shell
96 *.texi diff=texinfo
98 # Diff hunk header special-case file names.
99 admin/build-configs diff=perl
100 admin/charsets/mapconv diff=shell
101 admin/diff-tar-files diff=shell
102 admin/make-emacs diff=perl
103 admin/merge-gnulib diff=shell
104 admin/merge-pkg-config diff=shell
105 admin/quick-install-emacs diff=shell
106 admin/update-copyright diff=shell
107 admin/update_autogen diff=shell
108 build-aux/config.guess diff=shell
109 build-aux/config.sub diff=shell
110 build-aux/git-hooks/commit-msg diff=shell
111 build-aux/git-hooks/pre-commit diff=shell
112 build-aux/gitlog-to-emacslog diff=shell
113 build-aux/make-info-dir diff=shell
114 build-aux/move-if-change diff=shell
115 build-aux/msys-to-w32 diff=shell
116 build-aux/update-subdirs diff=shell
117 lib-src/rcs2log diff=shell
118 /make-dist diff=shell
120 # This file contains in-line diffs, which can include trailing
121 # whitespace.
122 java/INSTALL -whitespace