Skip to content

Commit b6a1b92

Browse files
committed
Fixes diff w/prev from diff view w/working changes
1 parent 10f46a1 commit b6a1b92

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/git/gitService.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,10 +1748,12 @@ export class GitService implements Disposable {
17481748
};
17491749
}
17501750
else if (status.workingTreeStatus !== undefined) {
1751-
return {
1752-
current: GitUri.fromFile(fileName, repoPath, undefined),
1753-
previous: await this.getPreviousUri(repoPath, uri, undefined, skip)
1754-
};
1751+
if (skip === 0) {
1752+
return {
1753+
current: GitUri.fromFile(fileName, repoPath, undefined),
1754+
previous: await this.getPreviousUri(repoPath, uri, undefined, skip)
1755+
};
1756+
}
17551757
}
17561758
}
17571759
else if (skip === 0) {

0 commit comments

Comments
 (0)