From bbcc7379f05c35c7f302c0f9b191100e9a40fa03 Mon Sep 17 00:00:00 2001 From: Tim Bishop Date: Sun, 9 Dec 2001 00:25:48 +0000 Subject: [PATCH] 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. --- cgi-bin/cvslog.cgi | 6 ++++++ 1 file changed, 6 insertions(+) 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"; -- 2.44.0