瀏覽代碼

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();

Loading…
取消
儲存