@matheusbsbs / matheus-bagliano / commits / 40ab7c33cd
Fork 0

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

Embarassing thinko. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>

Johannes Schindelin committed Jan 20, 2007 at 10:49 UTC 40ab7c33cd6dfdf887ed15baee1325ee445eced7
1 file changed +1 -1
reflog-walk.c
+1 -1
@@ -71,7 +71,7 @@ static int get_reflog_recno_by_time(struct complete_reflogs *array,
71 unsigned long timestamp)
72 {
73 int i;
74 - for (i = array->nr - 1; i >= 0; i++)
74 + for (i = array->nr - 1; i >= 0; i--)
75 if (timestamp >= array->items[i].timestamp)
76 return i;
77 return -1;