mirror of
https://github.com/git/git.git
synced 2024-12-03 23:14:23 +08:00
git-log (internal): add approxidate.
Next will be the pretty-print format. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
765ac8ec46
commit
fd751667a2
20
revision.c
20
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;
|
||||
|
Loading…
Reference in New Issue
Block a user