Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit a4c8386

Browse files
committed
Rename IGitService.Refresh to RefreshCloneUrl
Be explicit about what it does.
1 parent 06d17e0 commit a4c8386

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/GitHub.App/SampleData/GitServiceDesigner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class GitServiceDesigner : IGitService
1010
{
1111
public ILocalRepositoryModel CreateLocalRepositoryModel(string localPath) => null;
1212
public IBranch CreateCurrentBranchModel(ILocalRepositoryModel model) => null;
13-
public void Refresh(ILocalRepositoryModel localRepositoryModel) { }
13+
public void RefreshCloneUrl(ILocalRepositoryModel localRepositoryModel) { }
1414
public Task<string> GetLatestPushedSha(string path, string remote = "origin") => Task.FromResult<string>(null);
1515
public UriString GetRemoteUri(IRepository repo, string remote = "origin") => null;
1616
public IRepository GetRepository(string path) => null;

src/GitHub.Exports/Services/GitService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public IBranch CreateCurrentBranchModel(ILocalRepositoryModel model)
7171
/// <summary>
7272
/// Updates the CloneUrl from the "origin" remote.
7373
/// </summary>
74-
public void Refresh(ILocalRepositoryModel localRepositoryModel)
74+
public void RefreshCloneUrl(ILocalRepositoryModel localRepositoryModel)
7575
{
7676
var localPath = localRepositoryModel.LocalPath;
7777
if (localPath == null)

src/GitHub.Exports/Services/IGitService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface IGitService
2525
/// Updates the CloneUrl information based on the "origin" remote.
2626
/// </summary>
2727
/// <param name="localRepositoryModel">The repository model to refresh.</param>
28-
void Refresh(ILocalRepositoryModel localRepositoryModel);
28+
void RefreshCloneUrl(ILocalRepositoryModel localRepositoryModel);
2929

3030
/// <summary>
3131
/// Returns the URL of the remote for the specified <see cref="repository"/>. If the repository

src/GitHub.TeamFoundation.14/Base/TeamExplorerServiceHolder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public void Subscribe(object who, Action<ILocalRepositoryModel> handler)
113113
// for that, so this is a good place to refresh it in case that happened
114114
if (repo != null)
115115
{
116-
gitService.Refresh(repo);
116+
gitService.RefreshCloneUrl(repo);
117117
}
118118

119119
// if the active repo hasn't changed and there's notifications queued up,

test/GitHub.TeamFoundation.UnitTests/VSGitExtTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,6 @@ public ILocalRepositoryModel CreateLocalRepositoryModel(string localPath)
317317
public IRepository GetRepository(string path) => throw new NotImplementedException();
318318
public UriString GetUri(IRepository repository, string remote = "origin") => throw new NotImplementedException();
319319
public UriString GetUri(string path, string remote = "origin") => throw new NotImplementedException();
320-
public void Refresh(ILocalRepositoryModel localRepositoryModel) => throw new NotImplementedException();
320+
public void RefreshCloneUrl(ILocalRepositoryModel localRepositoryModel) => throw new NotImplementedException();
321321
}
322322
}

0 commit comments

Comments
 (0)