On Mon, Mar 19, 2012 at 10:50 AM, Thomas Rast <trast@xxxxxxxxxxxxxxx> wrote: > Piotr Krukowiecki <piotr.krukowiecki@xxxxxxxxx> writes: > >> is there a way to configure --word-diff to be a more programming >> language friendly? For example if I add one parameter to a function >> declaration, I'd like to see only the addition of the parameter as the >> change. But currently it shows much more. > > Umm, what's wrong with > > echo '*.cpp diff=cpp' >>.git/info/attributes > > Ok, the funcname patterns aren't so good, but the word regex is designed > to "tokenize" as far as that is feasible. Thanks, that's very good! I've missed it reading the git-diff man page. -- Piotr Krukowiecki -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html