-
Notifications
You must be signed in to change notification settings - Fork 19
/
Commit.sublime-menu
113 lines (112 loc) · 3.19 KB
/
Commit.sublime-menu
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[
{
"caption": "复制提交 Hash: '$short_commit…'",
"command": "copy_to_clipboard",
"args": {"text": "$commit"}
},
{
"caption": "查看文件树",
"command": "view_tree",
},
{
"caption": "-",
},
{
"caption": "切换到当前提交",
"command": "checkout_branch", "args": {"branch": "$commit"}
},
{
"caption": "从当前提交创建分支",
"command": "show_command_palette", "args":
{
"command": "create_branch",
"args": { "from": "$commit" },
}
},
{
"caption": "从当前提交创建标签",
"command": "show_command_palette",
"args":
{
"command": "create_tag",
"args": { "commit": "$commit" },
},
},
{
"caption": "编辑提交",
"children":
[
{
"caption": "编辑提交信息",
"command": "edit_commit",
},
{
"caption": "编辑提交内容",
"command": "edit_commit_contents",
"args": { "commit": "$commit" },
},
{
"caption": "Squash with Parent",
"command": "squash_commit",
},
{
"caption": "压缩选定的提交",
"command": "squash_commits",
},
{
"caption": "Squash Selected Commits, ignoring new messages (fixup)",
"command": "fixup_commits",
},
{
"caption": "向上移动提交",
"command": "move_commit",
"args": { "commit": "$commit", "down": false },
},
{
"caption": "向下移动提交",
"command": "move_commit",
"args": { "commit": "$commit", "down": true },
},
{
"caption": "删除提交",
"command": "drop_commits",
},
]
},
{
"caption": "恢复提交",
"command": "revert_commit",
"args": {"commit": "$commit"}
},
{
"caption": "Cherry Pick Commit",
"command": "cherry_pick",
"args": {"commit": "$commit"}
},
{
"command": "rebase_branch",
"args": {"commit": "$commit"}
},
{
"caption": "重置 $head_ref 到当前提交",
"children":
[
{
"caption": "软重置 - 保留索引和工作目录,差异将显示为暂存",
"command": "reset",
"args": {"commit": "$commit", "mode": "soft"}
},
{
"caption": "混合 (默认) - 保持工作目录,差异将显示为修改",
"command": "reset",
"args": {"commit": "$commit", "mode": "mixed"}
},
{
"caption": "硬重置 - 重置索引和工作目录,丢弃所有本地更改",
"command": "reset",
"args": {"commit": "$commit", "mode": "hard"}
},
]
},
{ "caption": "-", "id": "end" }
]