I recently converted an svn repository with git svn. Unfortunately the svn history has a number of empty commit messages. This is a problem when I rebase and
As I commented before, this totally destroys comments if you happen to have newlines in them. Here's a perl script that does this without being destructive:
#!/usr/bin/perl
my $data = "";
while() {
$data .= $_;
}
if($data =~ /^\s*$/) { $data="[Empty message]\n"; }
print "$data";
Then, just git filter-branch -f --msg-filter /path/to/perlfilter.pl