git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] .gitattributes: use the "perl" differ for Perl

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Apr 26, 2018, 07:50 UTC
Message-ID
<20180426075058.9322-3-avarab@gmail.com>
In-Reply-To
<20180426075058.9322-1-avarab@gmail.com>

As noted in gitattributes(5) this gives better patch context for these types of files.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 .gitattributes | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.gitattributes b/.gitattributes
index 482af05a6a..aa08dd219d 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,9 +1,9 @@
 * whitespace=!indent,trail,space
 *.[ch] whitespace=indent,trail,space diff=cpp
 *.sh whitespace=indent,trail,space eol=lf
-*.perl eol=lf
-*.pl eof=lf
-*.pm eol=lf
+*.perl eol=lf diff=perl
+*.pl eof=lf diff=perl
+*.pm eol=lf diff=perl
 /Documentation/git-*.txt eol=lf
 /command-list.txt eol=lf
 /GIT-VERSION-GEN eol=lf
-- 
2.17.0.290.gded63e768a
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 3 of 5 in “enable userdiff for more things in git.git”
  1. 0/3 enable userdiff for more things in git.gitÆvar Arnfjörð Bjarmason, Apr 26, 2018
  2. 1/3 .gitattributes: add *.pl extension for PerlÆvar Arnfjörð Bjarmason, Apr 26, 2018
  3. 2/3 .gitattributes: use the "perl" differ for PerlÆvar Arnfjörð Bjarmason, Apr 26, 2018
  4. 3/3 .gitattributes: add a diff driver for PythonÆvar Arnfjörð Bjarmason, Apr 26, 2018
  5. Junio C HamanoApr 26, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.