[PATCH] Teach "git-rev-parse" about date-based cut-offs
authorLinus Torvalds <torvalds@osdl.org>
Tue, 20 Sep 2005 21:13:24 +0000 (14:13 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 21 Sep 2005 01:10:32 +0000 (18:10 -0700)
commitc1babb1d65e034a058c14379eabec8eb374757ca
treef42f0f2dafa8e42d8774549bcd9f76e1b59e4b9c
parent7c6ef2f2142f0a4c22b5505d95553cac17867a21
[PATCH] Teach "git-rev-parse" about date-based cut-offs

This adds the options "--since=date" and "--before=date" to git-rev-parse,
which knows how to translate them into seconds since the epoch for
git-rev-list.

With this, you can do

git log --since="2 weeks ago"

or

git log --until=yesterday

to show the commits that have happened in the last two weeks or are
older than 24 hours, respectively.

The flags "--after=" and "--before" are synonyms for --since and --until,
and you can combine them, so

git log --after="Aug 5" --before="Aug 10"

is a valid (but strange) thing to do.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
rev-parse.c