chiark / gitweb /
bin/git-copyright-dates: Pass arguments on to `git log'.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 22 Sep 2017 10:27:48 +0000 (11:27 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 22 Sep 2017 10:27:48 +0000 (11:27 +0100)
This allows determining the copyright dates for subportions of a project.

bin/git-copyright-dates

index 5eec713757acbafd7eb5733848b420e95e5a73ea..180e7bad1f5a9a3ecf7d41735e98b78112295629 100755 (executable)
@@ -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?  $_";