--walk-reflogs: actually find the right commit by date.

Embarassing thinko.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2007-01-20 10:49:15 +01:00 коммит произвёл Junio C Hamano
Родитель 4d12a47123
Коммит 40ab7c33cd
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;