From: Junio C Hamano Date: Tue, 21 Sep 2010 17:57:56 GMT Subject: Re: [BUG, PATCH 0/3] Fix {blame,cat-file} --textconv for cases with symlinks Message-ID: <7vaanbuggr.fsf@alter.siamese.dyndns.org> In-Reply-To: <20100920180046.GA1790@sigill.intra.peff.net> Jeff King writes: > The one thing this does not enable is using a special diff driver on the > _pathnames_ of symlinks. Since these are by-definition text, I don't > know why anyone would want to do that. But it is an orthogonal problem, > anyway. We would need some way in the .gitattributes or the .gitconfig > to say "this is the diff driver to use not based on pathname matching, > but based on the file's mode". E.g., a special "SYMLINK" diff driver > like: > > [diff "SYMLINK"] > textconv = pointless-munge > > But again, I have no idea why anyone would want such a feature, so it is > not worth thinking too hard about it. I agree with you; pointless-munge would just be 'printf "%s\n"' ;-)