aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2017-05-30 08:22:27 -0700
committerPaul Eggert2017-05-30 08:29:34 -0700
commit1d5eeb64da5a8b133c559bb01a9e659255a55af4 (patch)
treecaab2cf8994d8c0986a319de0dcdd587f946f719
parent75b849294656fd92e77a2a6281ff4dceaaa38475 (diff)
downloademacs-1d5eeb64da5a8b133c559bb01a9e659255a55af4.tar.gz
emacs-1d5eeb64da5a8b133c559bb01a9e659255a55af4.zip
Update .gitattributes to match sources better
* .gitattributes: Remove nt/nmake.defs. Move dostorture.c, c.C, algrthms.html. Use pattern for todo-mode. Improve patterns for Ada, C, ObjC, shell. Add Pascal. Remove unused pattern *.ruby. Add config.guess and config.sub as shell files.
-rw-r--r--.gitattributes27
1 files changed, 13 insertions, 14 deletions
diff --git a/.gitattributes b/.gitattributes
index 7e35433dcc6..d523e13f3c2 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -24,15 +24,12 @@ admin/charsets/mapfiles/PTCP154 whitespace=cr-at-eol
24leim/MISC-DIC/cangjie-table.b5 whitespace=cr-at-eol 24leim/MISC-DIC/cangjie-table.b5 whitespace=cr-at-eol
25leim/MISC-DIC/cangjie-table.cns whitespace=cr-at-eol 25leim/MISC-DIC/cangjie-table.cns whitespace=cr-at-eol
26leim/MISC-DIC/pinyin.map whitespace=cr-at-eol 26leim/MISC-DIC/pinyin.map whitespace=cr-at-eol
27nt/nmake.defs whitespace=cr-at-eol 27test/manual/etags/c-src/dostorture.c whitespace=cr-at-eol
28test/etags/c-src/dostorture.c whitespace=cr-at-eol 28test/manual/etags/cp-src/c.C whitespace=cr-at-eol
29test/etags/cp-src/c.C whitespace=cr-at-eol 29test/manual/etags/html-src/algrthms.html whitespace=cr-at-eol
30test/etags/html-src/algrthms.html whitespace=cr-at-eol
31 30
32# The todo-mode file format includes trailing whitespace, so the test 31# The todo-mode file format includes trailing whitespace.
33# data files cannot avoid it. 32*.tod[aorty] -whitespace=blank-at-eol
34test/lisp/calendar/todo-mode-resources/todo-test-1.toda -whitespace=blank-at-eol
35test/lisp/calendar/todo-mode-resources/todo-test-1.todo -whitespace=blank-at-eol
36 33
37# The upstream maintainer does not want to remove trailing whitespace. 34# The upstream maintainer does not want to remove trailing whitespace.
38doc/misc/texinfo.tex -whitespace=blank-at-eol 35doc/misc/texinfo.tex -whitespace=blank-at-eol
@@ -52,23 +49,23 @@ doc/misc/texinfo.tex -whitespace=blank-at-eol
52etc/e/eterm-color binary 49etc/e/eterm-color binary
53 50
54# Git's builtin diff hunk header styles. 51# Git's builtin diff hunk header styles.
55*.ada diff=ada 52*.ad[abs] diff=ada
56*.[ch] diff=cpp 53*.[Cch] diff=cpp
57*.cc diff=cpp 54*.cc diff=cpp
58*.cpp diff=cpp 55*.[ch]pp diff=cpp
59*.hh diff=cpp 56*.hh diff=cpp
60*.for diff=fortran 57*.for diff=fortran
61*.html diff=html 58*.html diff=html
62*.shtml diff=html 59*.shtml diff=html
63*.xml diff=html 60*.xml diff=html
64*.java diff=java 61*.java diff=java
65*.m diff=objc 62*.[HMm] diff=objc
63*.pas diff=pascal
66*.perl diff=perl 64*.perl diff=perl
67*.pl diff=perl 65*.pl diff=perl
68*.php diff=php 66*.php diff=php
69*.py diff=python 67*.py diff=python
70*.rb diff=ruby 68*.rb diff=ruby
71*.ruby diff=ruby
72*.tex diff=tex 69*.tex diff=tex
73 70
74# Hooks for non-default diff hunk headers; see autogen.sh. 71# Hooks for non-default diff hunk headers; see autogen.sh.
@@ -78,7 +75,7 @@ etc/e/eterm-color binary
78*.mk diff=make 75*.mk diff=make
79*[Mm]akefile diff=make 76*[Mm]akefile diff=make
80Makefile.in diff=make 77Makefile.in diff=make
81*.sh diff=shell 78*[-.]sh diff=shell
82*.texi diff=texinfo 79*.texi diff=texinfo
83# 80#
84# Diff hunk header special-case file names. 81# Diff hunk header special-case file names.
@@ -91,6 +88,8 @@ admin/merge-pkg-config diff=shell
91admin/quick-install-emacs diff=shell 88admin/quick-install-emacs diff=shell
92admin/update-copyright diff=shell 89admin/update-copyright diff=shell
93admin/update_autogen diff=shell 90admin/update_autogen diff=shell
91build-aux/config.guess diff=shell
92build-aux/config.sub diff=shell
94build-aux/git-hooks/commit-msg diff=shell 93build-aux/git-hooks/commit-msg diff=shell
95build-aux/git-hooks/pre-commit diff=shell 94build-aux/git-hooks/pre-commit diff=shell
96build-aux/gitlog-to-emacslog diff=shell 95build-aux/gitlog-to-emacslog diff=shell