my $color_author = 'magenta';
-my $format = '%h' . '%x00' # abbreviated commit hash
+my $format = '%x00' # separator from --graph
+ . '%h' . '%x00' # abbreviated commit hash
. '%at' . '%x00' # author date
. '%an' . '%x00' # author name
. '%s' . '%x00' # subject
}
# Commit line.
- $line =~ /^([ *|]+) (.+)\x00(.+)\x00(.+)\x00(.+)\x00(.*)$/ or die $line;
+ $line =~ /^([ *|]+)\x00(.+)\x00(.+)\x00(.+)\x00(.+)\x00(.*)$/
+ or die $line;
my $prefix = $1;
my $hash = colored($2, $color_hash);
my $date = POSIX::strftime('%Y-%m-%d', localtime($3));