-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCommit.sublime-menu
More file actions
121 lines (121 loc) · 2.53 KB
/
Copy pathCommit.sublime-menu
File metadata and controls
121 lines (121 loc) · 2.53 KB
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
[
{
"caption": "切换到当前提交",
"command": "checkout_branch", "args": {"branch": "$commit"}
},
{ "command": "revert_commit" },
{
"command": "show_command_palette",
"args":
{
"command": "cherry_pick",
}
},
{
"caption": "变基",
"command": "rebase_branch",
"args": {"commit": "$commit"}
},
{
"caption": "复制哈希值: $short_commit…",
"command": "copy_to_clipboard",
"args": {"text": "$commit"}
},
{
"caption": "-",
},
{
"caption": "创建",
"id": "create",
"children":
[
{
"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": "创建补丁",
"command": "create_patch",
"args": { "from": "$last_selected_commit", "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": "压缩所选提交,忽略新消息(修复)",
"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": "重置 $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" }
]