Hi all,

just to confirm that keeping functional modifications commits
SEPARATED to code format is a common practice shared across ASF
projects, it would be better adopt it in case some of us is interested
on participating in other ASF activities - it would simplify the
process of having accepted patches :P

I often see patches refused because "can you please avoid to reformat
the code, because I don't understand which are the modifications?
thank you."

HTH, best,
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



2012/3/15 Francesco Chicchiriccò <[email protected]>:
> On 14/03/2012 17:05, Emmanuel Lécharny wrote:
>>
>> Le 3/14/12 4:17 PM, Francesco Chicchiriccò a écrit :
>>>
>>> Il 14/03/2012 16:04, Emmanuel Lécharny ha scritto:
>>>>
>>>>
>>>> I understand. Format *all* the files in one shot, then commit. That
>>>> would be way better than spreading such modifications in many commits.
>>>
>>>
>>> It *would* be way better, but I'd prefer to check this instead of
>>> relying upon IDE features only.
>>
>>
>> Why ? Are you using different IDE ? That's just fine, but that should
>> not impact the formatting.
>>
>> In any case, formatting the *changed* code (and only the changed code)
>> is fine, but formatting the *unchanged* code is evil.
>>
>> If your IDE is not smart enough not to format the entire file, then
>> change your IDE :)
>>
>> There is nothing worst community wise than a bunch of such formatting
>> : it forbids the analysis of the commit, and makes the commit mails
>> useless.
>
>
> I am not sure that non-functional, properly described commits would be the
> worst things a community can get, but we have an old saying in my town (it's
> a small country town, for your reference) that can be roughly translated as
> "Bind the donkey where its master says" :-)
>
> Hence, I will pause any other development activity, reformat all the code,
> possibly relying upon some smart maven plugin which I trust more than any
> IDE, and commit.
>
>
>> If you have to switch to 120 cars per line, do it in one shot.
>
>
> I will.
>
>
> Regards.
>
> --
> Francesco Chicchiriccò
>
> Apache Cocoon PMC and Apache Syncope PPMC Member
> http://people.apache.org/~ilgrosso/

Reply via email to