Browse Source

Fixes argument logging

main
Eric Amodio 5 years ago
parent
commit
b1b4845fe7
1 changed files with 15 additions and 3 deletions
  1. +15
    -3
      src/git/gitService.ts

+ 15
- 3
src/git/gitService.ts View File

@ -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…
Cancel
Save