@matheusbsbs / matheus-bagliano / commits / fd751667a2
Fork 0

git-log (internal): add approxidate.

Next will be the pretty-print format. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Mar 1, 2006 at 00:12 UTC fd751667a21b8fb9ece9bf7df10ac04e72be13b0
1 file changed +20
revision.c
+20
@@ -492,6 +492,26 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
492 revs->limited = 1;
493 continue;
494 }
495 + if (!strncmp(arg, "--since=", 8)) {
496 + revs->max_age = approxidate(arg + 8);
497 + revs->limited = 1;
498 + continue;
499 + }
500 + if (!strncmp(arg, "--after=", 8)) {
501 + revs->max_age = approxidate(arg + 8);
502 + revs->limited = 1;
503 + continue;
504 + }
505 + if (!strncmp(arg, "--before=", 9)) {
506 + revs->min_age = approxidate(arg + 9);
507 + revs->limited = 1;
508 + continue;
509 + }
510 + if (!strncmp(arg, "--until=", 8)) {
511 + revs->min_age = approxidate(arg + 8);
512 + revs->limited = 1;
513 + continue;
514 + }
515 if (!strcmp(arg, "--all")) {
516 handle_all(revs, flags);
517 continue;