Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
4a3c056e
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4a3c056e
编写于
6月 12, 2019
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use --follow-tags instead of --tags when pushing
fixes #70081 fixes #75240
上级
8af1f7eb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
15 deletion
+13
-15
extensions/git/package.json
extensions/git/package.json
+2
-2
extensions/git/package.nls.json
extensions/git/package.nls.json
+2
-2
extensions/git/src/commands.ts
extensions/git/src/commands.ts
+7
-9
extensions/git/src/git.ts
extensions/git/src/git.ts
+1
-1
extensions/git/src/repository.ts
extensions/git/src/repository.ts
+1
-1
未找到文件。
extensions/git/package.json
浏览文件 @
4a3c056e
...
...
@@ -319,12 +319,12 @@
},
{
"command"
:
"git.pushWithTags"
,
"title"
:
"%command.push
With
Tags%"
,
"title"
:
"%command.push
Follow
Tags%"
,
"category"
:
"Git"
},
{
"command"
:
"git.pushWithTagsForce"
,
"title"
:
"%command.push
With
TagsForce%"
,
"title"
:
"%command.push
Follow
TagsForce%"
,
"category"
:
"Git"
},
{
...
...
extensions/git/package.nls.json
浏览文件 @
4a3c056e
...
...
@@ -47,8 +47,8 @@
"command.pushForce"
:
"Push (Force)"
,
"command.pushTo"
:
"Push to..."
,
"command.pushToForce"
:
"Push to... (Force)"
,
"command.pushWithTags"
:
"Push
With Tags
"
,
"command.pushWithTagsForce"
:
"Push
With Tags (
Force)"
,
"command.pushWithTags"
:
"Push
(Follow Tags)
"
,
"command.pushWithTagsForce"
:
"Push
(Follow Tags,
Force)"
,
"command.addRemote"
:
"Add Remote"
,
"command.removeRemote"
:
"Remove Remote"
,
"command.sync"
:
"Sync"
,
...
...
extensions/git/src/commands.ts
浏览文件 @
4a3c056e
...
...
@@ -202,7 +202,7 @@ function createCheckoutItems(repository: Repository): CheckoutItem[] {
enum
PushType
{
Push
,
PushTo
,
PushTags
,
Push
Follow
Tags
,
}
interface
PushOptions
{
...
...
@@ -1759,10 +1759,8 @@ export class CommandCenter {
}
}
if
(
pushOptions
.
pushType
===
PushType
.
PushTags
)
{
await
repository
.
pushTags
(
undefined
,
forcePushMode
);
window
.
showInformationMessage
(
localize
(
'
push with tags success
'
,
"
Successfully pushed with tags.
"
));
if
(
pushOptions
.
pushType
===
PushType
.
PushFollowTags
)
{
await
repository
.
pushFollowTags
(
undefined
,
forcePushMode
);
return
;
}
...
...
@@ -1819,13 +1817,13 @@ export class CommandCenter {
}
@
command
(
'
git.pushWithTags
'
,
{
repository
:
true
})
async
push
With
Tags
(
repository
:
Repository
):
Promise
<
void
>
{
await
this
.
_push
(
repository
,
{
pushType
:
PushType
.
PushTags
});
async
push
Follow
Tags
(
repository
:
Repository
):
Promise
<
void
>
{
await
this
.
_push
(
repository
,
{
pushType
:
PushType
.
Push
Follow
Tags
});
}
@
command
(
'
git.pushWithTagsForce
'
,
{
repository
:
true
})
async
push
With
TagsForce
(
repository
:
Repository
):
Promise
<
void
>
{
await
this
.
_push
(
repository
,
{
pushType
:
PushType
.
PushTags
,
forcePush
:
true
});
async
push
Follow
TagsForce
(
repository
:
Repository
):
Promise
<
void
>
{
await
this
.
_push
(
repository
,
{
pushType
:
PushType
.
Push
Follow
Tags
,
forcePush
:
true
});
}
@
command
(
'
git.pushTo
'
,
{
repository
:
true
})
...
...
extensions/git/src/git.ts
浏览文件 @
4a3c056e
...
...
@@ -1425,7 +1425,7 @@ export class Repository {
}
if
(
tags
)
{
args
.
push
(
'
--tags
'
);
args
.
push
(
'
--
follow-
tags
'
);
}
if
(
remote
)
{
...
...
extensions/git/src/repository.ts
浏览文件 @
4a3c056e
...
...
@@ -1013,7 +1013,7 @@ export class Repository implements Disposable {
await
this
.
run
(
Operation
.
Push
,
()
=>
this
.
repository
.
push
(
remote
,
name
,
setUpstream
,
undefined
,
forcePushMode
));
}
async
pushTags
(
remote
?:
string
,
forcePushMode
?:
ForcePushMode
):
Promise
<
void
>
{
async
push
Follow
Tags
(
remote
?:
string
,
forcePushMode
?:
ForcePushMode
):
Promise
<
void
>
{
await
this
.
run
(
Operation
.
Push
,
()
=>
this
.
repository
.
push
(
remote
,
undefined
,
false
,
true
,
forcePushMode
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录