Skip to content

Commit

Permalink
git-log (internal): add approxidate.
Browse files Browse the repository at this point in the history
Next will be the pretty-print format.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Mar 1, 2006
1 parent 765ac8e commit fd75166
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions revision.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fd75166

Please sign in to comment.