forked from yysun/Git-Source-Control-Provider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GitToolCommands.cs
66 lines (60 loc) · 2.72 KB
/
GitToolCommands.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GitScc
{
class GitToolCommand
{
public CommandScope Scope { get; set; }
public string Name { get; set; }
public string Command { get; set; }
public GitToolCommand(string name, string Command, CommandScope scope = CommandScope.Project)
{
this.Name = name;
this.Command = Command;
Scope = scope;
}
}
public enum CommandScope
{
File, Project
}
static class GitToolCommands
{
internal static List<GitToolCommand> GitTorCommands = new List<GitToolCommand> {
new GitToolCommand("TortoiseGit", "/command:log"), // workaround to missing of the first command in menu
new GitToolCommand("Branch", "/command:branch"),
new GitToolCommand("Commit", "/command:commit"),
new GitToolCommand("Export", "/command:export"),
new GitToolCommand("Merge", "/command:merge"),
new GitToolCommand("Rebase", "/command:rebase"),
new GitToolCommand("Resolve", "/command:resolve"),
new GitToolCommand("Revert", "/command:revert"),
new GitToolCommand("Show Log", "/command:log", CommandScope.File),
new GitToolCommand("Switch", "/command:switch"),
new GitToolCommand("Sync", "/command:sync"),
new GitToolCommand("Tag", "/command:tag"),
};
internal static List<GitToolCommand> GitExtCommands = new List<GitToolCommand> {
new GitToolCommand("Git Extensions", "browse"), // workaround to missing of the first command in menu
new GitToolCommand("Add Files", "add"),
new GitToolCommand("Apply Patch", "applypatch"),
new GitToolCommand("Browse", "browse"),
new GitToolCommand("Create Branch", "branch"),
new GitToolCommand("Checkout Branch", "checkout"),
new GitToolCommand("Cherry Pick", "cherry"),
new GitToolCommand("Commit", "commit"),
new GitToolCommand("Edit .gitignore", "gitignore"),
new GitToolCommand("Format Patch", "formatpatch"),
new GitToolCommand("Manage Remotes", "remotes"),
new GitToolCommand("Merge", "merge"),
new GitToolCommand("Pull", "pull"),
new GitToolCommand("Push", "push"),
new GitToolCommand("Rebase", "rebase"),
new GitToolCommand("Stash", "stash"),
new GitToolCommand("Settings", "settings"),
new GitToolCommand("Solve Merge Conflicts", "mergeconflicts"),
};
}
}