git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Remove leading/trailing whitespace from commit messages when importing from Subversion?

From
MSMike Swanson <mikeonthecomputer@gmail.com>
Date
Mar 10, 2009, 06:15 UTC
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!
Previous: Marcel M. Cary
Message 3 of 3 in “Remove leading/trailing whitespace from commit messages when importing from Subversion?”
  1. Mike SwansonMar 10, 2009
  2. Marcel M. CaryMar 10, 2009
  3. Mike SwansonMar 10, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.