summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJonas Fonseca <fonseca@diku.dk>2006-08-28 13:52:13 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-08-28 23:20:33 (GMT)
commit3dfb9278dff6d81fcc062e9a56edab9ece38ea7d (patch)
treea6b36e289c7ab62cfeb8121f597a2bfe3f2595b3 /revision.c
parentb17fda5c07744190e2f9caa24321596830064083 (diff)
downloadgit-3dfb9278dff6d81fcc062e9a56edab9ece38ea7d.zip
git-3dfb9278dff6d81fcc062e9a56edab9ece38ea7d.tar.gz
git-3dfb9278dff6d81fcc062e9a56edab9ece38ea7d.tar.bz2
Add --relative-date option to the revision interface
Exposes the infrastructure from 9a8e35e98793af086f05d1ca9643052df9b44a74. Signed-off-by: Jonas Fonseca <fonseca@diku.dk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/revision.c b/revision.c
index 1d89d72..b588f74 100644
--- a/revision.c
+++ b/revision.c
@@ -816,6 +816,10 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
revs->simplify_history = 0;
continue;
}
+ if (!strcmp(arg, "--relative-date")) {
+ revs->relative_date = 1;
+ continue;
+ }
opts = diff_opt_parse(&revs->diffopt, argv+i, argc-i);
if (opts > 0) {
revs->diff = 1;