login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>, <junkio@...>
Date: Saturday, January 20, 2007 - 5:49 am

Embarassing thinko.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 reflog-walk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/reflog-walk.c b/reflog-walk.c
index d4b49c7..d58ff9b 100644
--- a/reflog-walk.c
+++ b/reflog-walk.c
@@ -70,7 +70,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;
-- 
1.5.0.rc1.gd85c

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] --walk-reflogs: actually find the right commit by da..., Johannes Schindelin, (Sat Jan 20, 5:49 am)
Re: [PATCH] --walk-reflogs: actually find the right commit b..., Johannes Schindelin, (Sat Jan 20, 5:36 pm)
Re: [PATCH] --walk-reflogs: actually find the right commit b..., Johannes Schindelin, (Sun Jan 21, 6:53 am)
Re: [PATCH] --walk-reflogs: actually find the right commit b..., Johannes Schindelin, (Sun Jan 21, 2:14 pm)
Re: [PATCH] --walk-reflogs: actually find the right commit b..., Johannes Schindelin, (Sat Jan 20, 5:52 am)
speck-geostationary