#!/usr/bin/perl use warnings; use strict; sub nChanges { my ($branches, $fname) = @_; local *F; # requires perl 5.8. Avoids shell issues if we ever get a changes # file named by the parents of Little Johnny Tables. open F, "-|", "git", "log", "--pretty=format:%H", $branches, "--", $fname or die "$!"; my @changes = ; return scalar @changes } my $look_for_type = "merged"; if (! @ARGV) { print <