6
6
7
7
use crate :: {
8
8
RefInfo ,
9
- ref_info:: {
10
- ui,
11
- ui:: { LocalCommit , LocalCommitRelation } ,
12
- } ,
9
+ ref_info:: { LocalCommit , LocalCommitRelation } ,
13
10
ui:: PushStatus ,
14
11
} ;
15
12
use bstr:: { BStr , BString , ByteSlice , ByteVec } ;
@@ -94,7 +91,7 @@ impl RefInfo {
94
91
repo,
95
92
upstream_commits. iter ( ) . filter_map ( |id| {
96
93
but_core:: Commit :: from_id ( id. attach ( repo) )
97
- . map ( ui :: Commit :: from)
94
+ . map ( crate :: ref_info :: Commit :: from)
98
95
. ok ( )
99
96
} ) ,
100
97
cost_info,
@@ -262,7 +259,7 @@ impl PushStatus {
262
259
263
260
fn changeset_identifier (
264
261
repo : & gix:: Repository ,
265
- commit : Option < & ui :: Commit > ,
262
+ commit : Option < & crate :: ref_info :: Commit > ,
266
263
elapsed : & mut Duration ,
267
264
) -> anyhow:: Result < Option < Identifier > > {
268
265
let Some ( commit) = commit else {
@@ -296,7 +293,7 @@ enum ChangeId {
296
293
297
294
fn lookup_similar < ' a > (
298
295
map : & ' a Identity ,
299
- commit : & ui :: Commit ,
296
+ commit : & crate :: ref_info :: Commit ,
300
297
expensive : Option < & Identifier > ,
301
298
change_id : ChangeId ,
302
299
) -> Option < & ' a gix:: ObjectId > {
@@ -312,7 +309,7 @@ fn lookup_similar<'a>(
312
309
/// Returns the fully-loaded commits suitable to be passed to UI, to have better re-use.
313
310
fn create_similarity_lut (
314
311
repo : & gix:: Repository ,
315
- commits : impl Iterator < Item = impl Borrow < ui :: Commit > > ,
312
+ commits : impl Iterator < Item = impl Borrow < crate :: ref_info :: Commit > > ,
316
313
( max_commits, num_tracked_files) : ( usize , usize ) ,
317
314
expensive : bool ,
318
315
) -> anyhow:: Result < Identity > {
@@ -633,7 +630,7 @@ enum Identifier {
633
630
ChangesetId ( ChangesetID ) ,
634
631
}
635
632
636
- fn commit_data_id ( c : & ui :: Commit ) -> anyhow:: Result < Identifier > {
633
+ fn commit_data_id ( c : & crate :: ref_info :: Commit ) -> anyhow:: Result < Identifier > {
637
634
let mut hasher = gix:: hash:: hasher ( gix:: hash:: Kind :: Sha1 ) ;
638
635
639
636
let gix:: actor:: Signature {
0 commit comments