Adds branch quick pick to directory compare command

This commit is contained in:
Eric Amodio
2017-03-18 11:06:30 -04:00
parent 73bbbc1d5f
commit 343d2f9be1
3 changed files with 18 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ export class DiffWithBranchCommand extends ActiveEditorCommand {
const gitUri = await GitUri.fromUri(uri, this.git);
const branches = await this.git.getBranches(gitUri.repoPath);
const pick = await BranchesQuickPick.show(branches, gitUri, goBackCommand);
const pick = await BranchesQuickPick.show(branches, `Compare ${path.basename(gitUri.fsPath)} to \u2026`, goBackCommand);
if (!pick) return undefined;
if (pick instanceof CommandQuickPickItem) {