mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
add git delete branch command
This commit is contained in:
committed by
Dirk Baeumer
parent
c73c21e234
commit
b96478ebcc
@@ -650,6 +650,11 @@ export class Repository {
|
||||
await this.run(args);
|
||||
}
|
||||
|
||||
async deleteBranch(name: string): Promise<void> {
|
||||
const args = ['branch', '-d', name];
|
||||
await this.run(args);
|
||||
}
|
||||
|
||||
async clean(paths: string[]): Promise<void> {
|
||||
const pathsByGroup = groupBy(paths, p => path.dirname(p));
|
||||
const groups = Object.keys(pathsByGroup).map(k => pathsByGroup[k]);
|
||||
|
||||
Reference in New Issue
Block a user