-
Notifications
You must be signed in to change notification settings - Fork 1
/
Commit.sublime-menu
119 lines (118 loc) · 2.5 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
[
{
"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",
},
]
},
{ "command": "revert_commit" },
{
"command": "show_command_palette",
"args":
{
"command": "cherry_pick",
}
},
{
"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": "创建补丁",
"command": "create_patch",
"args": { "from": "$last_selected_commit", "commit": "$commit" },
},
{ "caption": "-", "id": "end" }
]