diff --git a/src/git/gitService.ts b/src/git/gitService.ts index 0e4ca5a..e3665c2 100644 --- a/src/git/gitService.ts +++ b/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();