浏览代码

Fixes argument logging

main
Eric Amodio 5 年前
父节点
当前提交
b1b4845fe7
共有 1 个文件被更改,包括 15 次插入3 次删除
  1. +15
    -3
      src/git/gitService.ts

+ 15
- 3
src/git/gitService.ts 查看文件

@ -509,7 +509,11 @@ export class GitService implements Disposable {
}
@gate()
@log()
@log({
args: {
0: (repos?: Repository[]) => (repos === undefined ? false : repos.map(r => r.name).join(', '))
}
})
async fetchAll(repositories?: Repository[]) {
if (repositories === undefined) {
repositories = await this.getOrderedRepositories();
@ -532,7 +536,11 @@ export class GitService implements Disposable {
}
@gate()
@log()
@log({
args: {
0: (repos?: Repository[]) => (repos === undefined ? false : repos.map(r => r.name).join(', '))
}
})
async pullAll(repositories?: Repository[]) {
if (repositories === undefined) {
repositories = await this.getOrderedRepositories();
@ -555,7 +563,11 @@ export class GitService implements Disposable {
}
@gate()
@log()
@log({
args: {
0: (repos?: Repository[]) => (repos === undefined ? false : repos.map(r => r.name).join(', '))
}
})
async pushAll(repositories?: Repository[]) {
if (repositories === undefined) {
repositories = await this.getOrderedRepositories();

正在加载...
取消
保存