[vtk-developers] git trailing whitespace check and 3rd party code

Brad King brad.king at kitware.com
Wed Oct 19 12:34:37 EDT 2011


On 10/19/2011 12:14 PM, Sean McBride wrote:
> On Wed, 19 Oct 2011 11:09:16 -0400, Brad King said:
>
>> Try adding this to .gitattributes:
>>
>>    /Utilities/*      -whitespace
>>
>> That should disable all whitespace checks for the Utilities directory.
>
> That doesn't seem to be quite the right syntax, as it actually makes no difference.  I tried some variations like:
>
> /Utilities/vtkfreetype/* -whitespace
>
> which makes it stop complaining for files within /Utilities/vtkfreetype itself, but no for subfolders.

Try adding a Utilities/.gitattributes file with the line

*        -whitespace

-Brad



More information about the vtk-developers mailing list