Improve responsiveness while in 'replace-buffer-contents'
[emacs.git] / .gitattributes
blob15f83aeeb18665e2c33f14c53ee049542a2ad17c
1 # Attributes of Emacs files in the Git repository.
3 # Copyright 2015-2018 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 files use CRLF endings, even on non-Microsoft platforms.
21 # Do not warn about trailing whitespace with these files.
22 *.bat whitespace=cr-at-eol
23 admin/charsets/mapfiles/PTCP154 whitespace=cr-at-eol
24 leim/MISC-DIC/cangjie-table.b5 whitespace=cr-at-eol
25 leim/MISC-DIC/cangjie-table.cns whitespace=cr-at-eol
26 leim/MISC-DIC/pinyin.map whitespace=cr-at-eol
27 test/manual/etags/c-src/dostorture.c whitespace=cr-at-eol
28 test/manual/etags/cp-src/c.C whitespace=cr-at-eol
29 test/manual/etags/html-src/algrthms.html whitespace=cr-at-eol
31 # The todo-mode file format includes trailing whitespace.
32 *.tod[aorty] -whitespace=blank-at-eol
34 # The upstream maintainer does not want to remove trailing whitespace.
35 doc/misc/texinfo.tex -whitespace=blank-at-eol
37 # Some files should not be treated as text when diffing or merging.
38 *.cur binary
39 *.gpg binary
40 *.gz binary
41 *.icns binary
42 *.ico binary
43 *.pbm binary
44 *.pdf binary
45 *.pif binary
46 *.png binary
47 *.sig binary
48 *.tiff binary
49 etc/e/eterm-color binary
51 # Git's builtin diff hunk header styles.
52 *.ad[abs] diff=ada
53 *.[Cch] diff=cpp
54 *.cc diff=cpp
55 *.[ch]pp diff=cpp
56 *.hh diff=cpp
57 *.for diff=fortran
58 *.html diff=html
59 *.shtml diff=html
60 *.xml diff=html
61 *.java diff=java
62 *.[HMm] diff=objc
63 *.pas diff=pascal
64 *.perl diff=perl
65 *.pl diff=perl
66 *.php diff=php
67 *.py diff=python
68 *.rb diff=ruby
69 *.tex diff=tex
71 # Hooks for non-default diff hunk headers; see autogen.sh.
72 *.el diff=elisp
73 *.ac diff=m4
74 *.m4 diff=m4
75 *.mk diff=make
76 *[Mm]akefile diff=make
77 Makefile.in diff=make
78 *[-.]sh diff=shell
79 *.texi diff=texinfo
81 # Diff hunk header special-case file names.
82 admin/build-configs diff=perl
83 admin/charsets/mapconv diff=shell
84 admin/diff-tar-files diff=shell
85 admin/make-emacs diff=perl
86 admin/merge-gnulib diff=shell
87 admin/merge-pkg-config diff=shell
88 admin/quick-install-emacs diff=shell
89 admin/update-copyright diff=shell
90 admin/update_autogen diff=shell
91 build-aux/config.guess diff=shell
92 build-aux/config.sub diff=shell
93 build-aux/git-hooks/commit-msg diff=shell
94 build-aux/git-hooks/pre-commit diff=shell
95 build-aux/gitlog-to-emacslog diff=shell
96 build-aux/make-info-dir diff=shell
97 build-aux/move-if-change diff=shell
98 build-aux/msys-to-w32 diff=shell
99 build-aux/update-subdirs diff=shell
100 lib-src/rcs2log diff=shell
101 /make-dist diff=shell