-
Notifications
You must be signed in to change notification settings - Fork 1
/
Commit.sublime-menu
142 lines (139 loc) · 2.91 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[
{
"caption": "复制哈希值: $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": "编辑提交",
"id": "edit",
"children":
[
{
"caption": "编辑提交说明",
"command": "edit_commit",
},
{
"caption": "编辑提交内容",
"command": "edit_commit_contents",
"args": { "commit": "$commit" },
},
{
"caption": "压缩至父提交",
"command": "squash_commit",
},
{
"caption": "压缩选定的提交",
"command": "squash_commits",
},
{
"caption": "压缩选定的提交, 并忽略新提交说明 (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",
"id": "cherry_pick",
"children":
[
{
"caption": "Cherry Pick $short_commit",
"command": "cherry_pick",
"args": {"commit":"$commit", "mode":"commit"}
},
{
"caption": "Cherry Pick $short_commit --no-commit",
"command": "cherry_pick",
"args": {"commit":"$commit"}
},
]
},
{
"command": "hide_all_commit_refs",
"args": {"commit": "$commit"}
},
{
"command": "hide_all_refs_except_refs_at_commit",
"args": {"commit": "$commit"}
},
{
"caption": "Show All Hidden Branches",
"command": "show_all_refs"
},
{
"caption": "变基",
"command": "rebase_branch",
"args": {"commit": "$commit"}
},
{
"caption": "重置 $head_ref 到当前提交",
"id": "reset",
"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" }
]