Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror

Comment trim whitespace from patches (Score 1) 516

If you've ever used git-am, and get patches from people that have whitespace at the end of the line, it will complain at you like:
$ git-am some.mbox
.dotest/patch:10: trailing whitespace.
Requirements
warning: 1 line adds whitespace errors
You can fix those patch files with:
/^\(+.\{-}\S*\)\s\+$/\1/
I use this in vim (:%s), but probably 'sed -i' would work also.

Slashdot Top Deals

Round Numbers are always false. -- Samuel Johnson

Working...