# Re: \[PATCH\] .gitattributes: Enable cpp diff parsing for .\[ch\] files

- From: Peter Zijlstra \<peterz@infradead.org\>
- Date: 2011-08-29 13:32:47 
- List: git
- Page: https://ratatoskr.run/git/2011/08/3758238
- Thread: https://ratatoskr.run/git/2011/08/3757261/t.md

```text
On Fri, 2011-08-26 at 13:55 -0700, Boaz Harrosh wrote:

> But this patch is for all the people and distributions that are going
> to use the old git versions for a while, (Years).
> 
> It is important for the Linux mailing-list review, because you get
> patches with:
> 
> @@@ lable out:
> -	change foo
> +	to bazz
> 
> And how the hell are you suppose to know where in the file it is.
> This is such a trivial addition, that can help unify everyone's
> usage. I don't see the down sides.

Ah, I'm using:

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


For this.
```
