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

kent williams norman-k-williams at uiowa.edu
Wed Oct 13 14:30:25 EDT 2010


I'm trying to do a local commit of some changes in order to send them to
Gerrit as a topic.

Before I get very far along with that, I want to commit the changes locally.
I had some lines with trailing spaces to fix, which is perfectly fine by me.
I corrected the trailing whitespace, but the KWStyle hook is still
complaining about trailing white space.

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!

And it's complaining about trailing white space even though I've set the
KWStyle hook to false!

What am I doing wrong?

------------------------------------------------------------

git commit
pre-commit hook failure
-----------------------

Code/Common/itkFloatingPointExceptions.cxx:15: trailing whitespace.
+     This software is distributed WITHOUT ANY WARRANTY; without even
Code/Common/itkFloatingPointExceptions.cxx:16: trailing whitespace.
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
Code/Common/itkFloatingPointExceptions.cxx:70: trailing whitespace.
+#define FM_ALL_EXCEPT    FE_ALL_EXCEPT >> FE_EXCEPT_SHIFT
Code/Common/itkFloatingPointExceptions.cxx:79: trailing whitespace.
+   
Code/Common/itkFloatingPointExceptions.cxx:280: trailing whitespace.
+    msg << "signal:  SIGFPE with code "
Code/Common/itkFloatingPointExceptions.cxx:282: trailing whitespace.
+        <<   "invalid flag: "
Code/Common/itkFloatingPointExceptions.cxx:284: trailing whitespace.
+        << "divByZero flag: "
Code/Common/itkFloatingPointExceptions.cxx:300: trailing whitespace.
+  if(itk::FloatingPointExceptions::GetExceptionAction() ==
Code/Common/itkFloatingPointExceptions.cxx:1: new blank line at EOF.
Testing/Code/Common/itkFloatingPointExceptionsTest.cxx:42: trailing
whitespace.
+      std::cout << "Divide by Zero Exception not caught"
Testing/Code/Common/itkFloatingPointExceptionsTest.cxx:62: trailing
whitespace.
+      std::cout << "Zero divide by Zero Exception not caught"
Testing/Code/Common/itkFloatingPointExceptionsTest.cxx:83: trailing
whitespace.
+      std::cout << "Overflow Exception not caught"
Testing/Code/Common/itkFloatingPointExceptionsTest.cxx:105: trailing
whitespace.
+      std::cout << "Underflow Exception not caught"
Testing/Code/Common/itkFloatingPointExceptionsTest.cxx:125: trailing
whitespace.
+      std::cout << "Integer divide by zero Exception not caught"
Testing/Code/Common/itkFloatingPointExceptionsTest.cxx:1: new blank line at
EOF.
pandora 379% 



More information about the Insight-developers mailing list