git: internal git._syncAll command
This commit is contained in:
parent
11237b630f
commit
01619d3c34
|
@ -1174,6 +1174,19 @@ export class CommandCenter {
|
|||
await repository.sync();
|
||||
}
|
||||
|
||||
@command('git._syncAll')
|
||||
async syncAll(): Promise<void> {
|
||||
await Promise.all(this.model.repositories.map(async repository => {
|
||||
const HEAD = repository.HEAD;
|
||||
|
||||
if (!HEAD || !HEAD.upstream) {
|
||||
return;
|
||||
}
|
||||
|
||||
await repository.sync();
|
||||
}));
|
||||
}
|
||||
|
||||
@command('git.publish', { repository: true })
|
||||
async publish(repository: Repository): Promise<void> {
|
||||
const remotes = repository.remotes;
|
||||
|
|
Loading…
Reference in a new issue