diff options
author | Linus Torvalds <torvalds@osdl.org> | 2005-09-20 14:13:24 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-20 18:10:32 -0700 |
commit | c1babb1d65e034a058c14379eabec8eb374757ca (patch) | |
tree | f42f0f2dafa8e42d8774549bcd9f76e1b59e4b9c /t/t6003-rev-list-topo-order.sh | |
parent | [PATCH] ARM optimized SHA1 implementation (diff) | |
download | tgif-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 't/t6003-rev-list-topo-order.sh')
0 files changed, 0 insertions, 0 deletions