]> code.delx.au - gnu-emacs/blob - .gitattributes
-
[gnu-emacs] / .gitattributes
1 # Attributes of Emacs files in the Git repository.
2
3 # Copyright 2015-2016 Free Software Foundation, Inc.
4
5 # This file is part of GNU Emacs.
6
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.
11
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.
16
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19
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 lib-src/update-game-score.exe.manifest whitespace=cr-at-eol
28 nt/nmake.defs whitespace=cr-at-eol
29 test/etags/c-src/dostorture.c whitespace=cr-at-eol
30 test/etags/cp-src/c.C whitespace=cr-at-eol
31 test/etags/html-src/algrthms.html whitespace=cr-at-eol
32
33 # The upstream maintainer does not want to remove trailing whitespace.
34 doc/misc/texinfo.tex -whitespace=blank-at-eol
35
36 # The shr test files can have trailing whitespace.
37 test/data/shr/*.txt -whitespace=blank-at-eol
38
39 # Some files should not be treated as text when diffing or merging.
40 *.cur binary
41 *.gpg binary
42 *.gz binary
43 *.icns binary
44 *.ico binary
45 *.pbm binary
46 *.pdf binary
47 *.pif binary
48 *.png binary
49 *.sig binary
50 *.tiff binary
51 etc/e/eterm-color binary
52
53 # Git's builtin diff hunk header styles.
54 *.ada diff=ada
55 *.[ch] diff=cpp
56 *.cc diff=cpp
57 *.cpp diff=cpp
58 *.hh diff=cpp
59 *.for diff=fortran
60 *.html diff=html
61 *.shtml diff=html
62 *.xml diff=html
63 *.java diff=java
64 *.m diff=objc
65 *.perl diff=perl
66 *.pl diff=perl
67 *.php diff=php
68 *.py diff=python
69 *.rb diff=ruby
70 *.ruby diff=ruby
71 *.tex diff=tex
72
73 # Hooks for non-default diff hunk headers; see autogen.sh.
74 *.el diff=elisp
75 *.ac diff=m4
76 *.m4 diff=m4
77 *.mk diff=make
78 *[Mm]akefile diff=make
79 Makefile.in diff=make
80 *.sh diff=shell
81 *.texi diff=texinfo
82 #
83 # Diff hunk header special-case file names.
84 admin/build-configs diff=perl
85 admin/charsets/mapconv diff=shell
86 admin/diff-tar-files diff=shell
87 admin/make-emacs diff=perl
88 admin/merge-gnulib diff=shell
89 admin/merge-pkg-config diff=shell
90 admin/quick-install-emacs diff=shell
91 admin/update-copyright diff=shell
92 admin/update_autogen 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