doesn't appear to be a way to make perl's format use a blank field
but at least the line break happens now.
use warnings;
-my $format="%ad %aN <%aE>%n%h%n%s%n%b%nFILES:";
+my $format="%ad %aN <%aE>%n%h%n%B%nFILES:";
my @cmd = ("git", "log", "--log-size", "--name-only", "--date=short", "--format=$format", @ARGV);
open(LOG, '-|', @cmd) || die "$0: unable to run git log: $!";
$hash = $_;
$state++;
} elsif ($state == 2) {
- # message body
+ # multi-line message body
if (defined($body)) {
+ $_ = "\r" if $_ eq "";
$body .= " $_";
} else {
$body = $_;
$files
^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~~
$body
- ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+ @*
$hash
.