Re: [PATCH] sched: leave sched_setscheduler earlier if possible.

Peter Zijlstra
2011-03-26T10:28:19Z

On Sat, 2011-03-26 at 11:26 +0100, Peter Zijlstra wrote:
> Awesome so the diff.$foo.xfuncname is about what I want, except I seem
> to need a .gitattributes file per repository.
>
> Is there a way to over-ride the default in a global way so that I can
> only change ~/.gitconfig and not bother with all various repos I have?
>
> Another question, the built-in patterns consist of multiple regexes, can
> custom patterns also have multiple?
>
>
> So what worked for me was:
>
> ~/.gitconfig:
>
> [diff "cpp"]
> xfuncname = "^[[:alpha:]$_].*[^:]$"
>
> and linux-2.6/.gitattributes:
>
> *.h diff=cpp
> *.c diff=cpp
>
> What I tried was:
>
> [diff]
> xfuncname = "^[[:alpha:]$_].*[^:]$"
>
> But that didn't seem to work.. I also tried ~/.gitattributes, but again,
> no joy.

D0'h, so what worked is:

# cat ~/.gitconfig
[diff "default"]
xfuncname = "^[[:alpha:]$_].*[^:]$"