@@ -7,10 +7,10 @@ import { Logger } from '../logger';
77import { Messages } from '../messages' ;
88import { BranchesAndTagsQuickPick , CommandQuickPickItem } from '../quickPicks' ;
99
10- export class DiffHeadWithBranchCommand extends ActiveEditorCommand {
10+ export class DiffBranchWithBranchCommand extends ActiveEditorCommand {
1111
1212 constructor ( ) {
13- super ( [ Commands . DiffHeadWithBranch ] ) ;
13+ super ( Commands . DiffHeadWithBranch ) ;
1414 }
1515
1616 async execute ( editor ?: TextEditor , uri ?: Uri ) : Promise < any > {
@@ -20,7 +20,7 @@ export class DiffHeadWithBranchCommand extends ActiveEditorCommand {
2020
2121 try {
2222 const repoPath = await Container . git . getRepoPath ( uri ) ;
23- if ( ! repoPath ) return Messages . showNoRepositoryWarningMessage ( `Unable to open directory compare` ) ;
23+ if ( ! repoPath ) return Messages . showNoRepositoryWarningMessage ( `Unable to open branch compare` ) ;
2424
2525 const placeHolder = `Compare Index (HEAD) to ${ GlyphChars . Ellipsis } ` ;
2626
@@ -44,10 +44,12 @@ export class DiffHeadWithBranchCommand extends ActiveEditorCommand {
4444 Container . resultsExplorer . showComparisonInResults ( repoPath , compareWith , 'HEAD' ) ;
4545
4646 return undefined ;
47- } catch ( ex ) {
48- Logger . error ( ex , 'DiffHeadWithBranchCommand' ) ;
49- return window . showErrorMessage ( `Unable to open directory compare. See output channel for more details` ) ;
50- } finally {
47+ }
48+ catch ( ex ) {
49+ Logger . error ( ex , 'DiffBranchWithBranchCommand' ) ;
50+ return window . showErrorMessage ( `Unable to open branch compare. See output channel for more details` ) ;
51+ }
52+ finally {
5153 progressCancellation && progressCancellation . dispose ( ) ;
5254 }
5355 }
0 commit comments