aboutsummaryrefslogtreecommitdiff
path: root/reflog-walk.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-01-20 10:49:15 +0100
committerJunio C Hamano <junkio@cox.net>2007-01-20 21:32:31 -0800
commit40ab7c33cd6dfdf887ed15baee1325ee445eced7 (patch)
treeee64dd502c84d4edaa1b56723ce7710b1c6f03ff /reflog-walk.c
parent4d12a471230625da73be464f5a20b7480a6b8ecb (diff)
downloadgit-40ab7c33cd6dfdf887ed15baee1325ee445eced7.tar.gz
git-40ab7c33cd6dfdf887ed15baee1325ee445eced7.tar.xz
--walk-reflogs: actually find the right commit by date.
Embarassing thinko. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Diffstat (limited to 'reflog-walk.c')
-rw-r--r--reflog-walk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reflog-walk.c b/reflog-walk.c
index 8ccbe9776..8e2cd2fcf 100644
--- a/reflog-walk.c
+++ b/reflog-walk.c
@@ -71,7 +71,7 @@ static int get_reflog_recno_by_time(struct complete_reflogs *array,
unsigned long timestamp)
{
int i;
- for (i = array->nr - 1; i >= 0; i++)
+ for (i = array->nr - 1; i >= 0; i--)
if (timestamp >= array->items[i].timestamp)
return i;
return -1;