[Insight-developers] Utilities/hooks.sh

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Wed Oct 6 08:53:13 EDT 2010


Hi,

I find the idea very interesting - I've thought to propose something  
like that before, but didn't thought it can be portable enough at that  
time.

IMO, git is a very capable but also very complex revision system. We  
should make our best to simplify the git usage for the ITK developers,  
to lower the step to contribute to ITK. I can't see any nice way to  
simplify the git commands, but the basic setup for ITK development can  
be fairly easily automated.

A script like hooks.sh could be very handy to make all the basic  
configurations required for the normal git workflows used in ITK.
Ideally,

   git clone --recursive git://itk.org/ITK.git
   cd ITK
   ./dev.sh

should be enough to be able to

   commit with the hooks
   use gerrit
   use the topic stage
   push to itk.org

Does that sound reasonable?

Regards,

Gaëtan



Le 5 oct. 10 à 21:12, Brad King a écrit :

> On 10/05/2010 03:06 PM, Bill Lorensen wrote:
>> Matt,
>>
>> Should the name of this be changed from:
>> hooks.sh
>> to something like
>> EnableUncrustifyAndKWStyleHooks.sh
>>
>> The current name may mislead someone into thinking the script will
>> set-up the usual itk hooks.
>
> It *does* set up the usual ITK hooks.  It *also* enables the KWStyle
> and uncrustify checks.  The developer set up instructions can now be
>
> $ git clone git://itk.org/ITK.git
> $ cd ITK
> $ Utilities/hooks.sh
>
> After that additional instructions will be printed on first commit
> to set up KWStyle and uncrustify if they could not be configured
> automatically.
>
> -Brad
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers

-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101006/d6d502ac/attachment.pgp>


More information about the Insight-developers mailing list