Skip to contentSkip to conversation

Cleanup commit messages with git-stripspace

PATCH Petr Baudis 1 participant 1 message Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore

Petr Baudis

author Applied
#1 lore raw
In reply to a message not in the archive

Dear diary, on Sat, Jun 04, 2005 at 06:15:31PM CEST, I got a letter where Jonas Fonseca <[email protected]> told me that...

Quoted 5 lines

Besides removing empty lines from the beginning and end (like the current sed command) git-stripspace will also turn multiple consecutive empty lines into just one empty line.

I tried hard to prevent this exact behavior since I think this is Bad Thing (tm), but after all, what the hell... The sed expression has some portability problems associated.

Thanks, applied.

Signature · 3 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor