From: Mark Wooding Date: Fri, 22 Sep 2017 10:27:48 +0000 (+0100) Subject: bin/git-copyright-dates: Pass arguments on to `git log'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/1875c00af5adf9af7ec14a60bae3cbecf0200f46 bin/git-copyright-dates: Pass arguments on to `git log'. This allows determining the copyright dates for subportions of a project. --- diff --git a/bin/git-copyright-dates b/bin/git-copyright-dates index 5eec713..180e7ba 100755 --- a/bin/git-copyright-dates +++ b/bin/git-copyright-dates @@ -2,7 +2,7 @@ my (%Y, %M); open my $fh, "-|", "git", "log", - "--date=format:%Y", "--pretty=format:%ad %aN" + "--date=format:%Y", "--pretty=format:%ad %aN", @ARGV or die "git log: $!"; while (<$fh>) { /(\d+)\s+(.*)$/ or die "wtf? $_";