File tree 1 file changed +2
-12
lines changed
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,7 @@ impl<'a> Repo<'a> {
50
50
51
51
let mut time_of_most_recent_commit = None ;
52
52
let mut time_of_first_commit = None ;
53
- let mut commit_iter = repo
54
- . head ( ) ?
55
- . peel_to_commit_in_place ( ) ?
56
- . ancestors ( )
57
- . all ( )
58
- . peekable ( ) ;
53
+ let mut commit_iter = repo. head_commit ( ) ?. ancestors ( ) . all ( ) . peekable ( ) ;
59
54
60
55
let mailmap = repo. load_mailmap ( ) ;
61
56
let mut author_to_number_of_commits: HashMap < Sig , usize > = HashMap :: new ( ) ;
@@ -301,12 +296,7 @@ impl<'a> Repo<'a> {
301
296
}
302
297
303
298
pub fn get_head_refs ( & self ) -> Result < HeadRefs > {
304
- let head_oid = self
305
- . repo
306
- . head ( )
307
- . context ( "Could not read HEAD" ) ?
308
- . peel_to_id_in_place ( )
309
- . context ( "The repository isn't initialized" ) ??;
299
+ let head_oid = self . repo . head_id ( ) . context ( "Could not read HEAD" ) ?;
310
300
let refs_info = self
311
301
. repo
312
302
. references ( ) ?
You can’t perform that action at this time.
0 commit comments