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

Commit 5f566c4

Browse files
committed
Prefer IList vs IEnumerable
1 parent 333df3d commit 5f566c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.Api/Git/GitClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public interface IGitClient
215215
/// <param name="files">The files to check out</param>
216216
/// <param name="processor">A custom output processor instance</param>
217217
/// <returns>String output of git command</returns>
218-
ITask<string> CheckoutVersion(string changeset, IEnumerable<string> files, IOutputProcessor<string> processor = null);
218+
ITask<string> CheckoutVersion(string changeset, IList<string> files, IOutputProcessor<string> processor = null);
219219

220220
/// <summary>
221221
/// Executes at least one `git reset HEAD` command to remove files from the git index.
@@ -593,7 +593,7 @@ public ITask<string> DiscardAll(IOutputProcessor<string> processor = null)
593593
}
594594

595595
///<inheritdoc/>
596-
public ITask<string> CheckoutVersion(string changeset, IEnumerable<string> files, IOutputProcessor<string> processor = null)
596+
public ITask<string> CheckoutVersion(string changeset, IList<string> files, IOutputProcessor<string> processor = null)
597597
{
598598
return new GitCheckoutTask(changeset, files, cancellationToken, processor)
599599
.Configure(processManager);

0 commit comments

Comments
 (0)