From 05622307162a2fcb9082daed102dd6d39f595ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20R=C3=BC=C3=9Fler?= Date: Tue, 5 Nov 2024 15:46:13 +0100 Subject: [PATCH] Adapt to API changes --- asyncgit/src/sync/logwalker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asyncgit/src/sync/logwalker.rs b/asyncgit/src/sync/logwalker.rs index b49a24acfc..c6780823da 100644 --- a/asyncgit/src/sync/logwalker.rs +++ b/asyncgit/src/sync/logwalker.rs @@ -2,7 +2,7 @@ use super::{CommitId, SharedCommitFilterFn}; use crate::error::Result; use git2::{Commit, Oid, Repository}; -use gix::{revision::Walk, traverse::commit::simple::Sorting}; +use gix::revision::Walk; use std::{ cmp::Ordering, collections::{BinaryHeap, HashSet}, @@ -140,7 +140,7 @@ impl<'a> LogWalkerWithoutFilter<'a> { let platform = repo .rev_walk(tips) - .sorting(Sorting::ByCommitTimeNewestFirst) + .sorting(gix::revision::walk::Sorting::ByCommitTime(gix::traverse::commit::simple::CommitTimeOrder::NewestFirst)) .use_commit_graph(false); let walk = platform.all()?;