Print output that's just displaying the progress of the tool to STDERR
instead of STDOUT. I can now do things like:
git-deltatool --mode summary --type blocking | awk '{print $1}'
And not have the first line be "Scanning".
sub _iterate_commits {
my ($self, $fcn) = @_;
my $type = $self->opt('type');
- say "Scanning for $type commits since " . $self->last_tag . "...";
+ say STDERR "Scanning for $type commits since " . $self->last_tag . "...";
for my $log ( $self->find_commits($type) ) {
redo unless $fcn->($log);
}