From bfa70641b39dd5e26c64ca4cae0e356279f02485 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Sat, 26 Jun 2010 14:41:37 -0400 Subject: [PATCH] Corrected date filtering feature. --- filter-git-log.plx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/filter-git-log.plx b/filter-git-log.plx index 18b68d0..33e550f 100755 --- a/filter-git-log.plx +++ b/filter-git-log.plx @@ -35,7 +35,6 @@ my($GIT_CMD, $DATE_RANGE_CODE_FILE) = @ARGV; require "$DATE_RANGE_CODE_FILE"; $GIT_CMD .= " --no-color"; -$GIT_CMD .= " --date=rfc" unless $GIT_CMD =~ /--date/; open(GIT_OUTPUT, "-|", $GIT_CMD) or die "unable to run \"$GIT_CMD\": $!"; @@ -46,7 +45,7 @@ while (my $line = ) { print $currentCommit unless $skipThisOne; $skipThisOne = 0; $currentCommit = ""; - } elsif ($line =~ /^\s*Date\s*:\s*(\S+)\s*,/i) { #Warning: assumes --date=rfc + } elsif ($line =~ /^\s*Date\s*:\s*(.+)$/i) { $skipThisOne = not DateIsInRange($1); } $currentCommit .= $line;