[Insight-developers] Check for newline at end of file (was: Direct commits versus gerrit-merge)

Brad King brad.king at kitware.com
Thu Dec 30 09:35:35 EST 2010


On 12/29/2010 11:34 PM, Bill Lorensen wrote:
> BTW, the file Testing/Code/Algorithms/itkBresenhamLineTest.cxx:85:2:
> warning: no newline at end of file
> 
> I'm not sure what editor you use, but usually there is a setting to
> guarantee an newline at the end  of file. We used to have a commit
> hook to prevent checkins that did not have a newline at the end of
> file but it seems with git we don't have that.

We do now:

  http://itk.org/gitweb?p=ITK.git;a=commitdiff;h=c3d0b77f
  http://itk.org/gitweb?p=ITK.git;a=commitdiff;h=b8b25f0f

Update your local hooks (perhaps by running the developer setup script).

-Brad


More information about the Insight-developers mailing list