Re: [PATCH 2/2] diff: add a special SYMLINK user-diff driver
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Sep 22, 2010, 05:53 UTC
- Message-ID
- <vpqpqw6coia.fsf@bauges.imag.fr>
- In-Reply-To
- <20100921211303.GB1188@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> So I wonder if the problem really is not in the userdiff code at all, > and we should be disabling gitattribute lookup entirely for non-regular > files.
Actually, I'd also say that what needs to be changed is on the .gitattributes side, not on the .gitconfig side.
Another option would be zsh-style globbing, like:
# any symbolic link *(@) diff=link
# Symbolic links named *.pdf *.pdf(@)
(except that * means "all" to zsh, and should mean "regular" to Git).
But OTOH, that's a lot of work to implement, for very little benefit.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/