Re: [SCRIPT] chomp: trim trailing whitespace
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 28, 2006, 10:00 UTC
- Message-ID
- <Pine.LNX.4.63.0605281157330.1862@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <Pine.LNX.4.64.0605270905190.5623@g5.osdl.org>
Hi,
On Sat, 27 May 2006, Linus Torvalds wrote:
Show 8 quoted lines
> Well, git-stripspace actually does something slightly differently, in that > it also removes extraneous all-whitespace lines from the beginning, the > end, and the middle (in the middle, the rule is: two or more empty lines > are collapsed into one). > > Ie it's a total hack for parsing just commit messages (and it is in C, > because I can personally write 25 lines of C in about a millionth of the > time I can write 3 lines of perl).
But there is no good reason not to add some code and a command line switch, so that this tool with a very generic name actually performs what a normal person would expect from that name.
Ciao, Dscho