summaryrefslogtreecommitdiff
path: root/Porting/git-deltatool
diff options
context:
space:
mode:
authorFlorian Ragwitz <rafl@debian.org>2011-03-09 21:53:56 +0100
committerFlorian Ragwitz <rafl@debian.org>2011-03-09 21:55:47 +0100
commitd83adb226d6804e54be6f73a0073c3d4612661cf (patch)
tree44ba3a7f1b7617ff3616905ac9d0090012cb6792 /Porting/git-deltatool
parentb641685a8cdb14c8728fd97660d09571268ec117 (diff)
downloadperl-d83adb226d6804e54be6f73a0073c3d4612661cf.tar.gz
Have git-deltatool list the commit's author
Some authors are more likely to include delta entries in their commits than others. Knowing who wrote a commit at a glance when reviewing it is helpful.
Diffstat (limited to 'Porting/git-deltatool')
-rw-r--r--Porting/git-deltatool2
1 files changed, 2 insertions, 0 deletions
diff --git a/Porting/git-deltatool b/Porting/git-deltatool
index ce7c50a0d8..ae364cc788 100644
--- a/Porting/git-deltatool
+++ b/Porting/git-deltatool
@@ -327,6 +327,7 @@ sub show_header {
my ($self, $log) = @_;
my $header = $log->short_id;
$header .= " " . $log->subject if length $log->subject;
+ $header .= sprintf(' (%s)', $log->author) if $log->author;
say colored( $header, "yellow");
return;
}
@@ -769,6 +770,7 @@ BEGIN { our @ISA = qw/Git::Wrapper::Log/; }
sub subject { shift->attr->{subject} }
sub body { shift->attr->{body} }
sub short_id { shift->attr->{short_id} }
+sub author { shift->attr->{author} }
sub from_log {
my ($class, $log) = @_;