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

Commit b8e6420

Browse files
Updating calls to add all files
1 parent 9110437 commit b8e6420

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/GitHub.Api/Git/GitClient.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ ITask<string> Commit(string message, string body,
6262
ITask<string> Add(IList<string> files,
6363
IOutputProcessor<string> processor = null);
6464

65-
ITask<string> Add(GitAddTask.AddFileOption addFileOption,
66-
IOutputProcessor<string> processor = null);
65+
ITask<string> AddAll(IOutputProcessor<string> processor = null);
6766

6867
ITask<string> Remove(IList<string> files,
6968
IOutputProcessor<string> processor = null);
@@ -299,11 +298,11 @@ public ITask<string> Commit(string message, string body,
299298
.Configure(processManager);
300299
}
301300

302-
public ITask<string> Add(GitAddTask.AddFileOption addFileOption, IOutputProcessor<string> processor = null)
301+
public ITask<string> AddAll(IOutputProcessor<string> processor = null)
303302
{
304-
Logger.Trace("Add {0}", addFileOption);
303+
Logger.Trace("Add all files");
305304

306-
return new GitAddTask(addFileOption, cancellationToken, processor)
305+
return new GitAddTask(cancellationToken, processor)
307306
.Configure(processManager);
308307
}
309308

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ChangesView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private void Commit()
198198

199199
if (files.Length == tree.Entries.Count)
200200
{
201-
addTask = GitClient.Add(GitAddTask.AddFileOption.All);
201+
addTask = GitClient.AddAll();
202202
}
203203
else
204204
{

0 commit comments

Comments
 (0)