Skip to content

Commit 5c92e3a

Browse files
Eric Amodioeamodio
authored andcommitted
Fixes open diff command (backwards)
1 parent b861a11 commit 5c92e3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/git/src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2340,7 +2340,7 @@ export class CommandCenter {
23402340
return commands.executeCommand('vscode.diff', toGitUri(uri, hash), toGitUri(uri, `HEAD`), `${basename} (Index)`);
23412341
}
23422342

2343-
return commands.executeCommand('vscode.diff', toGitUri(uri, hash), toGitUri(uri, `${hash}^`), `${basename} (${hash.substr(0, 8)}^) \u27f7 ${basename} (${hash.substr(0, 8)})`);
2343+
return commands.executeCommand('vscode.diff', toGitUri(uri, `${hash}^`), toGitUri(uri, hash), `${basename} (${hash.substr(0, 8)}^) \u27f7 ${basename} (${hash.substr(0, 8)})`);
23442344
}
23452345

23462346
private createCommand(id: string, key: string, method: Function, options: CommandOptions): (...args: any[]) => any {

0 commit comments

Comments
 (0)