66
77use crate :: {
88 RefInfo ,
9- ref_info:: {
10- ui,
11- ui:: { LocalCommit , LocalCommitRelation } ,
12- } ,
9+ ref_info:: { LocalCommit , LocalCommitRelation } ,
1310 ui:: PushStatus ,
1411} ;
1512use bstr:: { BStr , BString , ByteSlice , ByteVec } ;
@@ -94,7 +91,7 @@ impl RefInfo {
9491 repo,
9592 upstream_commits. iter ( ) . filter_map ( |id| {
9693 but_core:: Commit :: from_id ( id. attach ( repo) )
97- . map ( ui :: Commit :: from)
94+ . map ( crate :: ref_info :: Commit :: from)
9895 . ok ( )
9996 } ) ,
10097 cost_info,
@@ -262,7 +259,7 @@ impl PushStatus {
262259
263260fn changeset_identifier (
264261 repo : & gix:: Repository ,
265- commit : Option < & ui :: Commit > ,
262+ commit : Option < & crate :: ref_info :: Commit > ,
266263 elapsed : & mut Duration ,
267264) -> anyhow:: Result < Option < Identifier > > {
268265 let Some ( commit) = commit else {
@@ -296,7 +293,7 @@ enum ChangeId {
296293
297294fn lookup_similar < ' a > (
298295 map : & ' a Identity ,
299- commit : & ui :: Commit ,
296+ commit : & crate :: ref_info :: Commit ,
300297 expensive : Option < & Identifier > ,
301298 change_id : ChangeId ,
302299) -> Option < & ' a gix:: ObjectId > {
@@ -312,7 +309,7 @@ fn lookup_similar<'a>(
312309/// Returns the fully-loaded commits suitable to be passed to UI, to have better re-use.
313310fn create_similarity_lut (
314311 repo : & gix:: Repository ,
315- commits : impl Iterator < Item = impl Borrow < ui :: Commit > > ,
312+ commits : impl Iterator < Item = impl Borrow < crate :: ref_info :: Commit > > ,
316313 ( max_commits, num_tracked_files) : ( usize , usize ) ,
317314 expensive : bool ,
318315) -> anyhow:: Result < Identity > {
@@ -633,7 +630,7 @@ enum Identifier {
633630 ChangesetId ( ChangesetID ) ,
634631}
635632
636- fn commit_data_id ( c : & ui :: Commit ) -> anyhow:: Result < Identifier > {
633+ fn commit_data_id ( c : & crate :: ref_info :: Commit ) -> anyhow:: Result < Identifier > {
637634 let mut hasher = gix:: hash:: hasher ( gix:: hash:: Kind :: Sha1 ) ;
638635
639636 let gix:: actor:: Signature {
0 commit comments