summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <Johannes.Schindelin@gmx.de>2007-01-20 10:49:15 +0100
committerLibravatar Junio C Hamano <junkio@cox.net>2007-01-20 21:32:31 -0800
commit40ab7c33cd6dfdf887ed15baee1325ee445eced7 (patch)
treeee64dd502c84d4edaa1b56723ce7710b1c6f03ff
parentFix --walk-reflog with --pretty=oneline (diff)
downloadtgif-40ab7c33cd6dfdf887ed15baee1325ee445eced7.tar.xz
--walk-reflogs: actually find the right commit by date.
Embarassing thinko. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
-rw-r--r--reflog-walk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reflog-walk.c b/reflog-walk.c
index 8ccbe97760..8e2cd2fcf6 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;