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

Re: [PATCH 0/3] enable userdiff for more things in git.git

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 26, 2018, 09:43 UTC
Message-ID
<xmqqr2n21ex1.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180426075058.9322-1-avarab@gmail.com>
Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
Show 10 quoted lines
> A noticed that git.git doesn't have userdiff enabled for perl files,
> and looking over some recent patches this gave better results, while
> I'm at it add one for Python too. I couldn't find anything in
> gitattributes(5) that was worth the bother of enabling this (e.g. we
> just have one Ruby file).
>
> Ævar Arnfjörð Bjarmason (3):
>   .gitattributes: add *.pl extension for Perl
>   .gitattributes: use the "perl" differ for Perl
>   .gitattributes: add a diff driver for Python
All looked sane, except one minor "Huh?" in the titles.

The last one in the above list makes it look as if you are adding the func header pattern and/or textconv filter for Python source code, but the patch actually just specifies that .py is to be processed by the existing diff driver meant for Python, and at least to me, the wording for the second one reflects that better.

Previous: Ævar Arnfjörð Bjarmason
Message 5 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.