Skip to content

Commit

Permalink
--walk-reflogs: actually find the right commit by date.
Browse files Browse the repository at this point in the history
Embarassing thinko.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Jan 21, 2007
1 parent 4d12a47 commit 40ab7c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflog-walk.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 40ab7c3

Please sign in to comment.