sloppy code formatting?

Kai Blin kai at samba.org
Mon Jun 25 15:38:28 GMT 2007


On Monday 25 June 2007 17:26:31 Gerald (Jerry) Carter wrote:
> * Trailing whitespace:
>
>   $ find . -name "*.[ch]" -exec script/strip_trail_ws.pl {} \;
>   $ svn diff | wc -l
>   221187

Git has an option to automatically strip whitespace on applying patches. You 
can enable it by adding the following to the .git/config file:

[apply]
        whitespace = strip

Cheers,
Kai

-- 
Kai Blin
WorldForge developer  http://www.worldforge.org/
Wine developer        http://wiki.winehq.org/KaiBlin
Samba team member     http://www.samba.org/samba/team/
--
Will code for cotton.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070625/021dfa76/attachment.bin


More information about the samba-technical mailing list