@@ -69,10 +69,7 @@ public void Dispose()
69
69
public string Path => repositoryInstance . Info . Path ;
70
70
public string WorkingDirectory => repositoryInstance . Info . WorkingDirectory ;
71
71
public bool IsHeadDetached => repositoryInstance . Info . IsHeadDetached ;
72
- public IGitRepository CreateNew ( string gitRootPath )
73
- {
74
- return new GitRepository ( new NullLog ( ) , ( ) => gitRootPath ) ;
75
- }
72
+ public IGitRepository CreateNew ( string gitRootPath ) => new GitRepository ( new NullLog ( ) , ( ) => gitRootPath ) ;
76
73
public int GetNumberOfUncommittedChanges ( )
77
74
{
78
75
// check if we have a branch tip at all to behave properly with empty repos
@@ -116,9 +113,9 @@ public string ShortenObjectId(ICommit commit)
116
113
117
114
public ITagCollection Tags => new TagCollection ( repositoryInstance . Tags ) ;
118
115
public IReferenceCollection Refs => new ReferenceCollection ( repositoryInstance . Refs ) ;
119
-
120
116
public IBranchCollection Branches => new BranchCollection ( repositoryInstance . Branches ) ;
121
117
public ICommitCollection Commits => new CommitCollection ( repositoryInstance . Commits ) ;
118
+ public IRemoteCollection Remotes => new RemoteCollection ( repositoryInstance . Network . Remotes ) ;
122
119
123
120
public void CreateBranchForPullRequestBranch ( AuthenticationInfo auth )
124
121
{
@@ -176,7 +173,7 @@ public void CreateBranchForPullRequestBranch(AuthenticationInfo auth)
176
173
log . Info ( $ "Checking local branch '{ fakeBranchName } ' out.") ;
177
174
Checkout ( fakeBranchName ) ;
178
175
}
179
- public bool GitRepoHasMatchingRemote ( string targetUrl )
176
+ public bool AnyMatchingRemote ( string targetUrl )
180
177
{
181
178
return repositoryInstance . Network . Remotes . Any ( r => r . Url == targetUrl ) ;
182
179
}
0 commit comments