git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Boaz Harrosh <bharrosh@panasas.com>
Date
Aug 29, 2011, 20:57 UTC
Message-ID
<4E5BFD36.2090000@panasas.com>
In-Reply-To
<1314624752.2816.32.camel@twins>
On 08/29/2011 06:32 AM, Peter Zijlstra wrote:
Show 24 quoted lines
> 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.
It looks like a lost cause so I'll try for the last time.

Everyone is suggesting that each one do his own cooked up secrets and solutions. And those that are stupid and know nothing like me are un-lucky. But what I'm proposing is that by just doing a "git clone" you'll be using these settings that we like to see, when you send us your patches.

Adding a .gitattributes file to the Linux git tree is a very simple message. "In the linux git tree all .c and .h files are c-source files" (And git will treat them that way)

Now that was not so hard was it? Really, no one said anything bad or negative
about the patch, only excuses how it can be achieved, very difficultly, in
another way. So for the last time:
  What are you guys afraid of? what possibly could be bad about this patch?
Sigh

Good bye to this subject Boaz

Previous: Peter ZijlstraNext: Peter Zijlstra
Message 7 of 10 in “.gitattributes: Enable cpp diff parsing for .[ch] files”
  1. .gitattributes: Enable cpp diff parsing for .[ch] filesBoaz Harrosh, Aug 25, 2011
  2. Linus TorvaldsAug 26, 2011
  3. Junio C HamanoAug 26, 2011
  4. Linus TorvaldsAug 26, 2011
  5. Boaz HarroshAug 26, 2011
  6. Peter ZijlstraAug 29, 2011
  7. Boaz HarroshAug 29, 2011
  8. Peter ZijlstraAug 29, 2011
  9. Linus TorvaldsAug 29, 2011
  10. Boaz HarroshAug 29, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.