From: Tim Bishop Date: Sun, 9 Dec 2001 00:25:48 +0000 (+0000) Subject: Added option to show commits since a given date: X-Git-Tag: PRE_WWW_REDESIGN~91 X-Git-Url: http://git.i-scream.org/?a=commitdiff_plain;h=bbcc7379f05c35c7f302c0f9b191100e9a40fa03;p=www.i-scream.org.git Added option to show commits since a given date: cvslog.cgi?period=since&days=2001/12/09 It should be noted that the defintion of "since" in this case does NOT include the day given. --- diff --git a/cgi-bin/cvslog.cgi b/cgi-bin/cvslog.cgi index 5653234..c234d8f 100755 --- a/cgi-bin/cvslog.cgi +++ b/cgi-bin/cvslog.cgi @@ -22,6 +22,12 @@ elsif($period eq "date") { $heading = "i-scream CVS$moduleext commits on $date"; $firstdate = "$date 00:00<$date 23:59" } +elsif($period eq "since") { + my($date)=$query->param('date'); + $date = `/bin/date \"+%Y/%m/%d\"` unless defined $date; + $heading = "i-scream CVS$moduleext commits since $date"; + $firstdate = ">$date"; +} elsif($period eq "thisweek") { $firstdate = ">last Sunday"; $heading = "i-scream CVS$moduleext commits this week";