chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a030a3
)
bin/git-copyright-dates: Pass arguments on to `git log'.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 22 Sep 2017 10:27:48 +0000
(11:27 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/bin/git-copyright-dates
b/bin/git-copyright-dates
index 5eec713757acbafd7eb5733848b420e95e5a73ea..180e7bad1f5a9a3ecf7d41735e98b78112295629 100755
(executable)
--- 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? $_";