Fixes issues with diff with previous

Wouldn't always grab the correct commit
This commit is contained in:
Eric Amodio
2017-02-13 11:42:54 -05:00
parent 3ef538b713
commit d5d0c3a28d
6 changed files with 20 additions and 48 deletions

View File

@@ -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);