[Insight-developers] Why does the KWStyle hook not let me commit, and why can't I turn the **&@#$ing thing off?

Bill Lorensen bill.lorensen at gmail.com
Fri Oct 15 16:26:40 EDT 2010


It seems that the KWStyle hook is true  by default when you run the
developer setup scripts. I think the default should be false.

On Wed, Oct 13, 2010 at 4:38 PM, kent williams
<norman-k-williams at uiowa.edu> wrote:
> Yeah that was the problem.
>
> Learning to use git reminds me of when, at a former job, a womand from
> Dassault System said that we were "joining the society" of Dassault
> Systemes.  What she was unable to properly formulate in English was
> something like  "becoming users of," but her phrase always struck me as
> unintentionally accurate.
>
> So we're all trying to join the Git Society. Where familiar commands from
> other version control systems mean something just different enough to keep
> you scratching your head for hours. Where there are dozens of secret
> handshakes and arcane rituals to learn.
>
>
> On 10/13/10 3:14 PM, "Matthew McCormick (thewtex)" <matt at mmmccormick.com>
> wrote:
>
>> Hi Kent,
>>
>>>
>>> This is killing me -- even if I fix the files it objects to, I still get the
>>> same pre-commit hook failure! Furthermore, in Emacs I can see the trailing
>>> white spaces it's finding and they no longer exist in the files I'm trying
>>> to commit!
>>>
>>
>> Are you possibly forgetting to add the new changes to the files after
>> they have been changed?  This is done with
>>
>>   git add <file name>
>>
>> or
>>
>>   git commit -a
>>
>> to automatically add all changes to files already tracked by Git.
>>
>>> And it's complaining about trailing white space even though I've set the
>>> KWStyle hook to false!
>>>
>>
>> KWStyle will catch trailing whitespaces on all C++ files, but an
>> additional pre-commit check occurs that checks for trailing whitespace
>> on all text files.  It is not disabled by turning of the KWStyle hook.
>>
>> Matt
>
> _______________________________________________
> 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
>


More information about the Insight-developers mailing list