Git - add actions to merge/rebase to repositories view (#274480)

This commit is contained in:
Ladislau Szomoru
2025-11-01 08:08:31 +00:00
committed by GitHub
parent 6c86512615
commit c0755c9484
3 changed files with 51 additions and 1 deletions

View File

@@ -5278,6 +5278,24 @@ export class CommandCenter {
await this._checkout(repository, { treeish: artifact.name, detached: true });
}
@command('git.repositories.merge', { repository: true })
async artifactMerge(repository: Repository, artifact: SourceControlArtifact): Promise<void> {
if (!repository || !artifact) {
return;
}
await repository.merge(artifact.id);
}
@command('git.repositories.rebase', { repository: true })
async artifactRebase(repository: Repository, artifact: SourceControlArtifact): Promise<void> {
if (!repository || !artifact) {
return;
}
await repository.rebase(artifact.id);
}
@command('git.repositories.compareRef', { repository: true })
async artifactCompareWith(repository: Repository, artifact: SourceControlArtifact): Promise<void> {
if (!repository || !artifact) {