@@ -25,7 +25,7 @@ private IRepository RepositoryInstance
2525 public string WorkingDirectory => RepositoryInstance . Info . WorkingDirectory ;
2626 public bool IsHeadDetached => RepositoryInstance . Info . IsHeadDetached ;
2727 public bool IsShallow => RepositoryInstance . Info . IsShallow ;
28- public IBranch Head => GetOrCreate ( RepositoryInstance . Head , RepositoryInstance . Diff ) ;
28+ public IBranch Head => GetOrWrap ( RepositoryInstance . Head , RepositoryInstance . Diff ) ;
2929
3030 public ITagCollection Tags => new TagCollection ( RepositoryInstance . Tags , RepositoryInstance . Diff , this ) ;
3131 public IReferenceCollection Refs => new ReferenceCollection ( RepositoryInstance . Refs ) ;
@@ -53,7 +53,7 @@ public void DiscoverRepository(string? gitDirectory)
5353 var first = ( Commit ) commit ;
5454 var second = ( Commit ) otherCommit ;
5555 var mergeBase = RepositoryInstance . ObjectDatabase . FindMergeBase ( first , second ) ;
56- return mergeBase == null ? null : GetOrCreate ( mergeBase , RepositoryInstance . Diff ) ;
56+ return mergeBase == null ? null : GetOrWrap ( mergeBase , RepositoryInstance . Diff ) ;
5757 } ) ;
5858 }
5959
@@ -63,7 +63,7 @@ public int UncommittedChangesCount()
6363 return retryAction . Execute ( GetUncommittedChangesCountInternal ) ;
6464 }
6565
66- public Branch GetOrCreate ( LibGit2Sharp . Branch innerBranch , Diff repoDiff )
66+ public Branch GetOrWrap ( LibGit2Sharp . Branch innerBranch , Diff repoDiff )
6767 {
6868 if ( innerBranch . Tip is null )
6969 {
@@ -74,10 +74,10 @@ public Branch GetOrCreate(LibGit2Sharp.Branch innerBranch, Diff repoDiff)
7474 return cachedBranches . GetOrAdd ( cacheKey , _ => new Branch ( innerBranch , repoDiff , this ) ) ;
7575 }
7676
77- public Commit GetOrCreate ( LibGit2Sharp . Commit innerCommit , Diff repoDiff ) =>
77+ public Commit GetOrWrap ( LibGit2Sharp . Commit innerCommit , Diff repoDiff ) =>
7878 cachedCommits . GetOrAdd ( innerCommit . Sha , _ => new Commit ( innerCommit , repoDiff , this ) ) ;
7979
80- public Tag GetOrCreate ( LibGit2Sharp . Tag innerTag , Diff repoDiff )
80+ public Tag GetOrWrap ( LibGit2Sharp . Tag innerTag , Diff repoDiff )
8181 {
8282 var cacheKey = $ "{ innerTag . CanonicalName } @{ innerTag . Target . Sha } ";
8383 return cachedTags . GetOrAdd ( cacheKey , _ => new Tag ( innerTag , repoDiff , this ) ) ;
0 commit comments