t/porting/authors.t can send just the git log info needed by checkAUTHORS.pl
authorNicholas Clark <nick@ccl4.org>
Thu, 27 Oct 2011 11:38:46 +0000 (13:38 +0200)
committerNicholas Clark <nick@ccl4.org>
Mon, 31 Oct 2011 10:38:26 +0000 (11:38 +0100)
Using a custom pretty format to reduce the data passed drops the runtime by
about 25%. Admittedly small in absolute terms, but an easy change whose
gains will slowly accumulate.

t/porting/authors.t

index f67e930..70565a3 100644 (file)
@@ -10,6 +10,7 @@ use strict;
 require 't/test.pl';
 find_git_or_skip('all');
 
-system("git log --pretty=fuller | $^X Porting/checkAUTHORS.pl --tap -");
+# This is the subset of "pretty=fuller" that checkAUTHORS.pl actually needs:
+system("git log --pretty=format:'commit %H%nAuthor: %an <%ae>%nAuthor Date:%nCommit: %cn <%cn>%n' | $^X Porting/checkAUTHORS.pl --tap -");
 
 # EOF