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

Re: diff attribute ignored by show and log -p

From
Jay Soffian <jaysoffian@gmail.com>
Date
Dec 17, 2009, 05:23 UTC
Message-ID
<76718490912162123r49f9bd90n8e032c144d0cdbac@mail.gmail.com>
In-Reply-To
<76718490912162046k36e2a275gaf7672b38c7a63e4@mail.gmail.com>
On Wed, Dec 16, 2009 at 11:46 PM, Jay Soffian <jaysoffian@gmail.com> wrote:
Show 15 quoted lines
> % cat .git/info/attributes
> *.xib diff=xibdiff
> % cat $(git config diff.xibdiff.command)
> #!/bin/sh
> trap "rm -f \"$2.tmp\" \"$5.tmp\"" 0 1 2 3 15
> ibtool --all "$2" > "$2".tmp
> ibtool --all "$5" > "$5".tmp
> colordiff -u "$2.tmp" "$5.tmp"
>
> Works great for things like:
>
> % git diff <commit1> <commit2> -- /path/to/*.xib
>
> But is apparently ignored by "git log -p" and "git show" which just
> use internal diff. Is this behavior intentional?

Ah, --ext-diff, and the reasoning behind requiring it for log/show is explained in 72909be.

j.
Previous: Jay SoffianNext: Nanako Shiraishi
Message 2 of 5 in “diff attribute ignored by show and log -p”
  1. Jay SoffianDec 17, 2009
  2. Jay SoffianDec 17, 2009
  3. Nanako ShiraishiDec 17, 2009
  4. Jay SoffianDec 17, 2009
  5. Jeff KingDec 17, 2009

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.