summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-03-01 08:12:37 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-03-01 11:16:34 (GMT)
commitfd751667a21b8fb9ece9bf7df10ac04e72be13b0 (patch)
tree899e1ef357400ccff45fb1ed6f8b75bda5749314 /revision.c
parent765ac8ec469f110e88376e4fac05d0ed475bcb28 (diff)
downloadgit-fd751667a21b8fb9ece9bf7df10ac04e72be13b0.zip
git-fd751667a21b8fb9ece9bf7df10ac04e72be13b0.tar.gz
git-fd751667a21b8fb9ece9bf7df10ac04e72be13b0.tar.bz2
git-log (internal): add approxidate.
Next will be the pretty-print format. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/revision.c b/revision.c
index c84f146..4885871 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;