aboutsummaryrefslogtreecommitdiff
path: root/rev-list.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2005-09-20 14:13:24 -0700
committerJunio C Hamano <junkio@cox.net>2005-09-20 18:10:32 -0700
commitc1babb1d65e034a058c14379eabec8eb374757ca (patch)
treef42f0f2dafa8e42d8774549bcd9f76e1b59e4b9c /rev-list.c
parent7c6ef2f2142f0a4c22b5505d95553cac17867a21 (diff)
downloadgit-c1babb1d65e034a058c14379eabec8eb374757ca.tar.gz
git-c1babb1d65e034a058c14379eabec8eb374757ca.tar.xz
[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>
Diffstat (limited to 'rev-list.c')
0 files changed, 0 insertions, 0 deletions