sloppy code formatting?

Gerald (Jerry) Carter jerry at samba.org
Mon Jun 25 15:41:45 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kai Blin wrote:
> 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

Thanks.  I figured git would do something like this based on
the lk formatting rules.  Just hadn't found it yet.



cheers, jerry


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGf+I5IR7qMdg1EfYRAkGfAJ4kR/f8GFulA83qnvf4hAl33PoO/wCgzua/
hhWVpnPJT9WTADM+2WwgkzA=
=jq/T
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list