@@ -16,7 +16,8 @@ namespace LibGit2Sharp
1616 [ DebuggerDisplay ( "{DebuggerDisplay,nq}" ) ]
1717 public class Commit : GitObject
1818 {
19- private readonly GitObjectLazyGroup group ;
19+ private readonly GitObjectLazyGroup group1 ;
20+ private readonly GitObjectLazyGroup group2 ;
2021 private readonly ILazy < Tree > lazyTree ;
2122 private readonly ILazy < Signature > lazyAuthor ;
2223 private readonly ILazy < Signature > lazyCommitter ;
@@ -38,12 +39,13 @@ internal Commit(Repository repo, ObjectId id)
3839 {
3940 lazyTree = GitObjectLazyGroup . Singleton ( this . repo , id , obj => new Tree ( this . repo , Proxy . git_commit_tree_id ( obj ) , null ) ) ;
4041
41- group = new GitObjectLazyGroup ( this . repo , id ) ;
42- lazyAuthor = group . AddLazy ( Proxy . git_commit_author ) ;
43- lazyCommitter = group . AddLazy ( Proxy . git_commit_committer ) ;
44- lazyMessage = group . AddLazy ( Proxy . git_commit_message ) ;
45- lazyMessageShort = group . AddLazy ( Proxy . git_commit_summary ) ;
46- lazyEncoding = group . AddLazy ( RetrieveEncodingOf ) ;
42+ group1 = new GitObjectLazyGroup ( this . repo , id ) ;
43+ lazyAuthor = group1 . AddLazy ( Proxy . git_commit_author ) ;
44+ lazyCommitter = group1 . AddLazy ( Proxy . git_commit_committer ) ;
45+ group2 = new GitObjectLazyGroup ( this . repo , id ) ;
46+ lazyMessage = group2 . AddLazy ( Proxy . git_commit_message ) ;
47+ lazyMessageShort = group2 . AddLazy ( Proxy . git_commit_summary ) ;
48+ lazyEncoding = group2 . AddLazy ( RetrieveEncodingOf ) ;
4749
4850 lazyNotes = new Lazy < IEnumerable < Note > > ( ( ) => RetrieveNotesOfCommit ( id ) . ToList ( ) ) ;
4951
0 commit comments