Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-01-20 12:49:15 +0300
committerJunio C Hamano <junkio@cox.net>2007-01-21 08:32:31 +0300
commit40ab7c33cd6dfdf887ed15baee1325ee445eced7 (patch)
treeee64dd502c84d4edaa1b56723ce7710b1c6f03ff /reflog-walk.c
parent4d12a471230625da73be464f5a20b7480a6b8ecb (diff)
--walk-reflogs: actually find the right commit by date.
Embarassing thinko. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Diffstat (limited to 'reflog-walk.c')
-rw-r--r--reflog-walk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reflog-walk.c b/reflog-walk.c
index 8ccbe97760..8e2cd2fcf6 100644
--- a/reflog-walk.c
+++ b/reflog-walk.c
@@ -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;