Re: Cleaning up dangling whitespace

From: Date: Mon, 05 Jan 2015 23:08:53 +0000
Subject: Re: Cleaning up dangling whitespace
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-80209@lists.php.net to get a copy of this message
On Mon, Jan 5, 2015 at 11:58 PM, Stanislav Malyshev <smalyshev@gmail.com> wrote: > Hi! > > The code in the PHP source repo has a lot of random dangling whitespace > at the end of lines, which looks sloppy and produces some weird effects > in diffs because some editors auto-clean it and some do not. I'd like to > clean it up (it's easy to do automatically) in master, but this produces > a big patch that may also create some conflicts with existing pull reqs > (easily resolved, but still). > So, I'd like to ask if there are any objections to such cleanup? If not, > then I'll do it, probably next weekend. > No objection to whitespace cleanup. iirc git even has options to ignore whitespace changes on merge/rebase. It would be nice to also add a pre-commit hook stripping trailing whitespace, to avoid this happening again. Nikita

« previous php.internals (#80209) next »