Browse Source

Fixes diff w/prev from diff view w/working changes

main
Eric Amodio 5 years ago
parent
commit
b6a1b928f1
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/git/gitService.ts

+ 6
- 4
src/git/gitService.ts View File

@ -1748,10 +1748,12 @@ export class GitService implements Disposable {
};
}
else if (status.workingTreeStatus !== undefined) {
return {
current: GitUri.fromFile(fileName, repoPath, undefined),
previous: await this.getPreviousUri(repoPath, uri, undefined, skip)
};
if (skip === 0) {
return {
current: GitUri.fromFile(fileName, repoPath, undefined),
previous: await this.getPreviousUri(repoPath, uri, undefined, skip)
};
}
}
}
else if (skip === 0) {

Loading…
Cancel
Save