mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 17:25:28 -05:00
Adds support for blame & log on compare files
Allows for deep navigation through git history
This commit is contained in:
@@ -21,7 +21,7 @@ export default class DiffLineWithPreviousCommand extends EditorCommand {
|
||||
line = line || editor.selection.active.line;
|
||||
|
||||
if (!commit || GitProvider.isUncommitted(commit.sha)) {
|
||||
const gitUri = GitUri.fromUri(uri);
|
||||
const gitUri = GitUri.fromUri(uri, this.git);
|
||||
const blameline = line - gitUri.offset;
|
||||
if (blameline < 0) return undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user