Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

rework combine_params() a bit

  • Loading branch information...
commit ef048bcba2c5fdf0989972539d13b530d4dd6866 1 parent 992a4e3
Sergey Senozhatsky authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 trivial-git-stats.pl
6 trivial-git-stats.pl
@@ -84,7 +84,7 @@ ()
84 84
85 85 sub combine_params()
86 86 {
87   - my $out = "--author=\"$author\" --stat ";
  87 + my $out = "";
88 88 $out .= "$begin..$end" if defined $begin;
89 89 $out .= " --since=\"$since\"" if defined $since;
90 90 $out .= " --until=\"$until\"" if defined $until;
@@ -95,8 +95,8 @@ ()
95 95 {
96 96 my ($fh, $filename) = tempfile();
97 97 my $param = combine_params();
98   - my $commit_nr = `git log --pretty=oneline $params | wc -l`;
99   - `git log --pretty=tformat: $param > $filename`;
  98 + my $commit_nr = `git log --pretty=oneline --author=\"$author\" $param | wc -l`;
  99 + `git log --pretty=tformat: --author=\"$author\" --stat $param > $filename`;
100 100
101 101 print "\nStats for: $author \n\tTotal number of commits $commit_nr\n";
102 102 while (<$fh>) {

0 comments on commit ef048bc

Please sign in to comment.
Something went wrong with that request. Please try again.