Re: [BUG, PATCH 0/3] Fix {blame,cat-file} --textconv for cases with symlinks
Jeff King <peff@peff.net> writes:
Show 13 quoted lines
> 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"' ;-)