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

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

From
MSMike Swanson <mikeonthecomputer@gmail.com>
Date
Mar 10, 2009, 03:14 UTC
Message-ID
<49B5DB01.8080206@gmail.com>

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.
Next: Marcel M. Cary
Message 1 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.