Skip to content

Commit

Permalink
Fixes diff w/prev from diff view w/working changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Jun 11, 2019
1 parent 10f46a1 commit b6a1b92
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/git/gitService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b6a1b92

Please sign in to comment.