From: Mike Swanson Date: Tue, 10 Mar 2009 06:15:26 GMT Subject: Re: Remove leading/trailing whitespace from commit messages when importing from Subversion? Message-ID: <49B6057E.2020706@gmail.com> In-Reply-To: <49B5FCD3.8060707@oak.homeunix.org> Marcel M. Cary wrote: > Try "git filter-branch --msg-filter your-filter-command". > > Marcel > Thank you, after-the-fact works fine too. :) If anyone else searches the archives and wonders how I did it, this sed command is it: sed -e "s/^[ \t]*//;s/[ \t]*$//;/^$/d" Unix rules!