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