mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-15 01:25:42 -05:00
Fixes issues with diff with previous
Wouldn't always grab the correct commit
This commit is contained in:
@@ -70,7 +70,7 @@ export default class Git {
|
||||
|
||||
const params = [`blame`, `--root`, format];
|
||||
if (sha) {
|
||||
params.push(`${sha}^!`);
|
||||
params.push(sha);
|
||||
}
|
||||
|
||||
return gitCommand(root, ...params, `--`, file);
|
||||
@@ -81,7 +81,7 @@ export default class Git {
|
||||
|
||||
const params = [`blame`, `--root`, format, `-L ${startLine},${endLine}`];
|
||||
if (sha) {
|
||||
params.push(`${sha}^!`);
|
||||
params.push(sha);
|
||||
}
|
||||
|
||||
return gitCommand(root, ...params, `--`, file);
|
||||
|
||||
Reference in New Issue
Block a user