From: Junio C Hamano Date: Wed, 1 Mar 2006 08:12:37 +0000 (-0800) Subject: git-log (internal): add approxidate. X-Git-Tag: v1.3.0-rc1~57^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fd751667a21b8fb9ece9bf7df10ac04e72be13b0;p=git.git git-log (internal): add approxidate. Next will be the pretty-print format. Signed-off-by: Junio C Hamano --- diff --git a/revision.c b/revision.c index c84f1460..48858714 100644 --- a/revision.c +++ b/revision.c @@ -492,6 +492,26 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch revs->limited = 1; continue; } + if (!strncmp(arg, "--since=", 8)) { + revs->max_age = approxidate(arg + 8); + revs->limited = 1; + continue; + } + if (!strncmp(arg, "--after=", 8)) { + revs->max_age = approxidate(arg + 8); + revs->limited = 1; + continue; + } + if (!strncmp(arg, "--before=", 9)) { + revs->min_age = approxidate(arg + 9); + revs->limited = 1; + continue; + } + if (!strncmp(arg, "--until=", 8)) { + revs->min_age = approxidate(arg + 8); + revs->limited = 1; + continue; + } if (!strcmp(arg, "--all")) { handle_all(revs, flags); continue;