Bladeren bron

Fixes argument logging

main
Eric Amodio 5 jaren geleden
bovenliggende
commit
b1b4845fe7
1 gewijzigde bestanden met toevoegingen van 15 en 3 verwijderingen
  1. +15
    -3
      src/git/gitService.ts

+ 15
- 3
src/git/gitService.ts Bestand weergeven

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

Laden…
Annuleren
Opslaan