You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rares Vernica <rv...@gmail.com> on 2007/03/16 01:16:06 UTC
force/apply code indentation
Hi,
How can I force or apply code indentation rules on C/C++ files?
Thanks a lot,
Ray
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: force/apply code indentation
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 16, 2007, at 14:33, Rares Vernica wrote:
> Andy Levy wrote:
>
>> On 3/15/07, Rares Vernica wrote:
>>
>>> How can I force or apply code indentation rules on C/C++ files?
>> Run a formatting checked in a pre-commit hook script and if it
>> doesn't
>> pass the test, reject the commit.
>> Do NOT modify the source during the transaction.
>
> Is there a template for such pre-commit hook?
Here's an example which may help:
http://svn.haxx.se/users/archive-2006-06/0853.shtml
--
To reply to the mailing list, please use your mailer's Reply To All
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: force/apply code indentation
Posted by Rares Vernica <rv...@gmail.com>.
Andy Levy wrote:
> On 3/15/07, Rares Vernica <rv...@gmail.com> wrote:
>> Hi,
>>
>> How can I force or apply code indentation rules on C/C++ files?
>
> Run a formatting checked in a pre-commit hook script and if it doesn't
> pass the test, reject the commit.
>
> Do NOT modify the source during the transaction.
Is there a template for such pre-commit hook?
Thanks a lot,
Ray
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: force/apply code indentation
Posted by Andy Levy <an...@gmail.com>.
On 3/15/07, Rares Vernica <rv...@gmail.com> wrote:
> Hi,
>
> How can I force or apply code indentation rules on C/C++ files?
Run a formatting checked in a pre-commit hook script and if it doesn't
pass the test, reject the commit.
Do NOT modify the source during the transaction.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org