On 05/25/2009 07:31 PM, Tom Lane wrote:
> David Fetter<david@fetter.org> writes:
>> On Mon, May 25, 2009 at 12:24:05PM -0400, Tom Lane wrote:
>>> If you'd like to accomplish something *useful* about this, how about
>>> pestering git upstream to support diff -c output format?
>
>> It looks like this is doable with a suitable git configuration file
>> such as $HOME/.gitconfig or (finer grain) a .git/config for the
>> repository :)
>
> Cool, let's see one.
>
> If we were to put it into a repository config file, that would more or
> less have the effect of enforcing a project style for diffs, no?
Yes and no.
You can define that a subset (or all) files use a specific "diff driver"
in the repository - unfortunately the definition of that driver has to
be done locally. Defining it currently involves installing a wrapper
like the one on http://wiki.postgresql.org/wiki/Talk:Working_with_Git
and doing
Andres