diff options
| author | Paul Eggert | 2017-05-30 08:22:27 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-05-30 08:29:34 -0700 |
| commit | 1d5eeb64da5a8b133c559bb01a9e659255a55af4 (patch) | |
| tree | caab2cf8994d8c0986a319de0dcdd587f946f719 | |
| parent | 75b849294656fd92e77a2a6281ff4dceaaa38475 (diff) | |
| download | emacs-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-- | .gitattributes | 27 |
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 | |||
| 24 | leim/MISC-DIC/cangjie-table.b5 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 | 25 | leim/MISC-DIC/cangjie-table.cns whitespace=cr-at-eol |
| 26 | leim/MISC-DIC/pinyin.map whitespace=cr-at-eol | 26 | leim/MISC-DIC/pinyin.map whitespace=cr-at-eol |
| 27 | nt/nmake.defs whitespace=cr-at-eol | 27 | test/manual/etags/c-src/dostorture.c whitespace=cr-at-eol |
| 28 | test/etags/c-src/dostorture.c whitespace=cr-at-eol | 28 | test/manual/etags/cp-src/c.C whitespace=cr-at-eol |
| 29 | test/etags/cp-src/c.C whitespace=cr-at-eol | 29 | test/manual/etags/html-src/algrthms.html whitespace=cr-at-eol |
| 30 | test/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 |
| 34 | test/lisp/calendar/todo-mode-resources/todo-test-1.toda -whitespace=blank-at-eol | ||
| 35 | test/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. |
| 38 | doc/misc/texinfo.tex -whitespace=blank-at-eol | 35 | doc/misc/texinfo.tex -whitespace=blank-at-eol |
| @@ -52,23 +49,23 @@ doc/misc/texinfo.tex -whitespace=blank-at-eol | |||
| 52 | etc/e/eterm-color binary | 49 | etc/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 |
| 80 | Makefile.in diff=make | 77 | Makefile.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 | |||
| 91 | admin/quick-install-emacs diff=shell | 88 | admin/quick-install-emacs diff=shell |
| 92 | admin/update-copyright diff=shell | 89 | admin/update-copyright diff=shell |
| 93 | admin/update_autogen diff=shell | 90 | admin/update_autogen diff=shell |
| 91 | build-aux/config.guess diff=shell | ||
| 92 | build-aux/config.sub diff=shell | ||
| 94 | build-aux/git-hooks/commit-msg diff=shell | 93 | build-aux/git-hooks/commit-msg diff=shell |
| 95 | build-aux/git-hooks/pre-commit diff=shell | 94 | build-aux/git-hooks/pre-commit diff=shell |
| 96 | build-aux/gitlog-to-emacslog diff=shell | 95 | build-aux/gitlog-to-emacslog diff=shell |