Skip to contentSkip to conversation

Patch removing spaces

Qemu-devel Balazs Attila-Mihaly (Cd-MaN) 2 participants 2 messages May 22, 2008

lore
Share & tools
lore
#0 lore raw

Hello all

I had no idea that the patch would start such a long discussion :-). I fully agree with the comment that a script producing the output is preferred to the actual patch, so that it can be verified. Attached you will find the perl script (which is a slight variation of the script I posted the link to earlier) used to perform the operation. It should be launched from the source directory and will go recursively (excluding .svn directories) and search for .c, .h and .texi files and apply the space-removing process on them. In the same time it replaces Windows newlines with *nix newlines (there were a couple of those in the source).

Don't get me wrong, I'm not pushing for inclusion or anything like that, I just thought that this was a convention in the source and wanted to help out preserving it.

Best regards.

      __________________________________________________________

Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

#1 lore raw

Balazs Attila-Mihaly \(Cd-MaN\) writes ("Re: [Qemu-devel] Patch removing spaces"):

Quoted 3 lines

Don't get me wrong, I'm not pushing for inclusion or anything like that, I just thought that this was a convention in the source and wanted to help out preserving it.

_Preserving_ the convention is fine. I agree that patches which introduce trailing whitespace (or carriage returns!) should not be commited.

But going through and changing the existing code is a very bad idea. The benefits are trivial and the costs (extra conflicts, spurious output from `vcs blame', spurious diffs reported, and so on) are substantial.

Changing the existing code would be a bad idea even if it was to improve a layout style which everyone agreed was horrid and confusing to work with. It is infinitely more of a bad idea when the problem, and thus the fix, is actually invisible and so practically worthless.

Ian.