--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:
parent
4d12a47123
commit
40ab7c33cd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user