X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tig.pl;h=e3affa8a059de0fc96096ec74fa54f58505b9226;hb=78a901d372af527c99e8860799f7655ba73a4cee;hp=77b7d9416600f812fd760bbf7f05df208e99effa;hpb=4bf926384a26bbdbe7c6bb6476aa6093381667c8;p=config%2Fdotfiles.git diff --git a/tig.pl b/tig.pl index 77b7d94..e3affa8 100755 --- a/tig.pl +++ b/tig.pl @@ -34,7 +34,8 @@ my $color_ref_reference = 'red bold'; 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 @@ -50,7 +51,8 @@ while (my $line = <$fh>) { } # 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));