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

diff attribute ignored by show and log -p

From
Jay Soffian <jaysoffian@gmail.com>
Date
Dec 17, 2009, 04:46 UTC
Message-ID
<76718490912162046k36e2a275gaf7672b38c7a63e4@mail.gmail.com>

% 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?

j.
Next: Jay Soffian
Message 1 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.