зеркало из https://github.com/microsoft/git.git
--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:
Родитель
4d12a47123
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче