diff --git a/CHANGELOG.md b/CHANGELOG.md index da2960a..848f4c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ - Adds `gitlens.showQuickRepoHistory` and `gitlens.showQuickCommitDetails` commands to the status bar - Changes the default command of `gitlens.codeLens.recentChange.command` to `gitlens.showQuickCommitDetails` - Changes the default command of `gitlens.statusBar.command` to `gitlens.showQuickCommitDetails` - - Changes behavior of `gitlens.showQuickFileHistory` when executed via CodeLens to open commit details directly + - Changes Changes behavior of `gitlens.showQuickCommitDetails` to show commit commands rather than file set (use `Show Changed Files` command to get to the file set) - Changes `gitlens.diffWithPrevious` command to behave as `gitlens.diffWithWorking` if the file has uncommitted changes - Renames `gitlens.diffWithPrevious` command from `Diff Commit with Previous` to `Compare with Previous Commit` - Renames `gitlens.diffLineWithPrevious` command from `Diff Commit (line) with Previous` to `Compare Line with Previous Commit` diff --git a/src/commands/showQuickCommitDetails.ts b/src/commands/showQuickCommitDetails.ts index 5356d7f..709ec1f 100644 --- a/src/commands/showQuickCommitDetails.ts +++ b/src/commands/showQuickCommitDetails.ts @@ -1,6 +1,6 @@ 'use strict'; import { Iterables } from '../system'; -import { TextEditor, Uri, window } from 'vscode'; +import { commands, TextEditor, Uri, window } from 'vscode'; import { ActiveEditorCommand } from './commands'; import { Commands } from '../constants'; import GitProvider, { GitCommit, GitUri } from '../gitProvider'; @@ -36,6 +36,8 @@ export default class ShowQuickCommitDetailsCommand extends ActiveEditorCommand { sha = blame.commit.isUncommitted ? blame.commit.previousSha : blame.commit.sha; repoPath = blame.commit.repoPath; + + return commands.executeCommand(Commands.ShowQuickFileHistory, uri, undefined, blame.commit); } catch (ex) { Logger.error('[GitLens.ShowQuickCommitDetails]', `getBlameForLine(${blameline})`, ex);