* Remove leading/trailing whitespace from commit messages when importing from Subversion? @ 2009-03-10 3:14 Mike Swanson 2009-03-10 5:38 ` Marcel M. Cary 0 siblings, 1 reply; 3+ messages in thread From: Mike Swanson @ 2009-03-10 3:14 UTC (permalink / raw) To: git I was wondering if it's possible to removing leading and trailing whitespace (tabs, newlines, spaces) from commit messages when importing from Subversion via git-svn. I've got a repository with tens of thousands of commits, and not all of the messages are entered... sanely. I need to know whether it is possible to clean these up when transfering the repository to Git. Thanks. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Remove leading/trailing whitespace from commit messages when importing from Subversion? 2009-03-10 3:14 Remove leading/trailing whitespace from commit messages when importing from Subversion? Mike Swanson @ 2009-03-10 5:38 ` Marcel M. Cary 2009-03-10 6:15 ` Mike Swanson 0 siblings, 1 reply; 3+ messages in thread From: Marcel M. Cary @ 2009-03-10 5:38 UTC (permalink / raw) To: Mike Swanson; +Cc: git@vger.kernel.org Mike Swanson wrote: > I was wondering if it's possible to removing leading and trailing > whitespace (tabs, newlines, spaces) from commit messages when importing > from Subversion via git-svn. > > I've got a repository with tens of thousands of commits, and not all of > the messages are entered... sanely. I need to know whether it is > possible to clean these up when transfering the repository to Git. Try "git filter-branch --msg-filter your-filter-command". Marcel ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Remove leading/trailing whitespace from commit messages when importing from Subversion? 2009-03-10 5:38 ` Marcel M. Cary @ 2009-03-10 6:15 ` Mike Swanson 0 siblings, 0 replies; 3+ messages in thread From: Mike Swanson @ 2009-03-10 6:15 UTC (permalink / raw) To: git@vger.kernel.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! ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-10 6:17 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-03-10 3:14 Remove leading/trailing whitespace from commit messages when importing from Subversion? Mike Swanson 2009-03-10 5:38 ` Marcel M. Cary 2009-03-10 6:15 ` Mike Swanson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).