Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753612Ab1CZK2T (ORCPT ); Sat, 26 Mar 2011 06:28:19 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:60985 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751565Ab1CZK2R (ORCPT ); Sat, 26 Mar 2011 06:28:17 -0400 Subject: Re: [PATCH] sched: leave sched_setscheduler earlier if possible. From: Peter Zijlstra To: Junio C Hamano Cc: Steven Rostedt , Dario Faggioli , Ingo Molnar , Thomas Gleixner , Gregory Haskins , Mike Galbraith , linux-kernel , Andrew Morton In-Reply-To: <1301135173.2250.324.camel@laptop> References: <1300971618.3960.82.camel@Palantir> <1300976519.14261.141.camel@gandalf.stny.rr.com> <1301048910.2250.184.camel@laptop> <1301057573.14261.168.camel@gandalf.stny.rr.com> <1301058430.2250.211.camel@laptop> <7vzkoi4yl3.fsf@alter.siamese.dyndns.org> <1301135173.2250.324.camel@laptop> Content-Type: text/plain; charset="UTF-8" Date: Sat, 26 Mar 2011 11:30:23 +0100 Message-ID: <1301135423.2250.325.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1148 Lines: 44 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:]$_].*[^:]$" -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/