add git delete branch command

This commit is contained in:
Maik Riechert
2017-05-03 22:53:26 +01:00
committed by Dirk Baeumer
parent c73c21e234
commit b96478ebcc
5 changed files with 60 additions and 1 deletions

View File

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