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

Commit 9110437

Browse files
Removing add all option
1 parent 0d0f1d7 commit 9110437

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

src/GitHub.Api/Git/Tasks/GitAddTask.cs

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ namespace GitHub.Unity
66
{
77
class GitAddTask : ProcessTask<string>
88
{
9-
public enum AddFileOption
10-
{
11-
All,
12-
CurrentDirectory
13-
}
14-
159
private const string TaskName = "git add";
1610
private readonly string arguments;
1711

@@ -30,23 +24,10 @@ public GitAddTask(IEnumerable<string> files, CancellationToken token,
3024
}
3125
}
3226

33-
public GitAddTask(AddFileOption addFileOption, CancellationToken token,
27+
public GitAddTask(CancellationToken token,
3428
IOutputProcessor<string> processor = null) : base(token, processor ?? new SimpleOutputProcessor())
3529
{
36-
arguments = "add ";
37-
38-
switch (addFileOption)
39-
{
40-
case AddFileOption.All:
41-
arguments += "-A";
42-
break;
43-
44-
case AddFileOption.CurrentDirectory:
45-
arguments += ".";
46-
break;
47-
48-
default: throw new ArgumentOutOfRangeException(nameof(addFileOption), addFileOption, null);
49-
}
30+
arguments = "add -A";
5031
}
5132

5233
public override string ProcessArguments { get { return arguments; } }

0 commit comments

Comments
 (0)