Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 23c642a

Browse files
neuroKipshana
authored andcommitted
Renamed IRepository::CheckoutFiles to DiscardChanges to better reflect its functionality
1 parent dcf27c9 commit 23c642a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GitHub.Api/Git/IRepository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace GitHub.Unity
55
{
66
/// <summary>
7-
/// Represents a repository, either local or retreived via the GitHub API.
7+
/// Represents a repository, either local or retrieved via the GitHub API.
88
/// </summary>
99
public interface IRepository : IEquatable<IRepository>
1010
{
@@ -18,7 +18,7 @@ public interface IRepository : IEquatable<IRepository>
1818
ITask Revert(string changeset);
1919
ITask RequestLock(string file);
2020
ITask ReleaseLock(string file, bool force);
21-
ITask CheckoutFiles(List<string> files);
21+
ITask DiscardChanges(List<string> files);
2222

2323
void CheckLogChangedEvent(CacheUpdateEvent gitLogCacheUpdateEvent);
2424
void CheckStatusChangedEvent(CacheUpdateEvent cacheUpdateEvent);

src/GitHub.Api/Git/Repository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public ITask ReleaseLock(string file, bool force)
112112
return repositoryManager.UnlockFile(file, force);
113113
}
114114

115-
public ITask CheckoutFiles(List<string> files)
115+
public ITask DiscardChanges(List<string> files)
116116
{
117117
return repositoryManager.CheckoutFiles(files);
118118
}

0 commit comments

Comments
 (0)