Git Config

Smylers Smylers at stripey.com
Sat Aug 20 15:01:30 BST 2011


Gianni Ceccarelli writes:

> On 2011-08-20 Smylers <Smylers at stripey.com> wrote:
> 
> > Hello. How can I make the git diff command use the -b flag (aka
> > --ignore-space-change) by default?
> 
> There does not seem to be a way:
> 
> - no support in config
>   http://git.kernel.org/?p=git/git.git;a=blob;f=diff.c;h=d3d8daec77142bc6a67aacdc2e62ee522ddf12db;hb=HEAD#l137
> 
> - aliases can't modify built-in commands

Oh. Thanks for looking that up.

Given there's a mechanism for specifying default options in ~/.gitconfig
it's curious that it only works for some of them.

And it seemed so unlikely that Git can't do something that CVS can, that
I presumed it was just me not being able to find it!

Cheers

Smylers
-- 
http://twitter.com/Smylers2


More information about the london.pm mailing list