@@ -64,7 +64,7 @@ pub enum Sorting {
64
64
/// In the *sample history* and a cut-off date of 4, the returned list of commits would be `8, 7, 6, 4`
65
65
ByCommitTimeNewestFirstCutoffOlderThan {
66
66
/// The amount of seconds since unix epoch, the same value obtained by any `gix_date::Time` structure and the way git counts time.
67
- time_in_seconds_since_epoch : gix_date:: SecondsSinceUnixEpoch ,
67
+ seconds : gix_date:: SecondsSinceUnixEpoch ,
68
68
} ,
69
69
}
70
70
@@ -315,9 +315,9 @@ pub mod ancestors {
315
315
match self . sorting {
316
316
Sorting :: BreadthFirst => self . next_by_topology ( ) ,
317
317
Sorting :: ByCommitTimeNewestFirst => self . next_by_commit_date ( None ) ,
318
- Sorting :: ByCommitTimeNewestFirstCutoffOlderThan {
319
- time_in_seconds_since_epoch ,
320
- } => self . next_by_commit_date ( time_in_seconds_since_epoch . into ( ) ) ,
318
+ Sorting :: ByCommitTimeNewestFirstCutoffOlderThan { seconds } => {
319
+ self . next_by_commit_date ( seconds . into ( ) )
320
+ }
321
321
}
322
322
}
323
323
}
@@ -327,9 +327,7 @@ pub mod ancestors {
327
327
/// If not topo sort, provide the cutoff date if present.
328
328
fn cutoff_time ( & self ) -> Option < gix_date:: SecondsSinceUnixEpoch > {
329
329
match self {
330
- Sorting :: ByCommitTimeNewestFirstCutoffOlderThan {
331
- time_in_seconds_since_epoch,
332
- } => Some ( * time_in_seconds_since_epoch) ,
330
+ Sorting :: ByCommitTimeNewestFirstCutoffOlderThan { seconds } => Some ( * seconds) ,
333
331
_ => None ,
334
332
}
335
333
}
@@ -407,7 +405,7 @@ pub mod ancestors {
407
405
Some ( Ok ( Info {
408
406
id : oid,
409
407
parent_ids : parents,
410
- commit_time : Some ( commit_time as u64 ) ,
408
+ commit_time : Some ( commit_time) ,
411
409
} ) )
412
410
}
413
411
}
0 commit comments