Skip to content

Commit 75054ab

Browse files
Update extension.js
1 parent af6c35b commit 75054ab

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

extension.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ async function getRepositoryDiff(api) {
8787
}
8888
const repo = api.repositories[0];
8989

90-
// Prefer the API methods when available.
9190
if (typeof repo.diffWithHEAD === "function") {
9291
const diff = await repo.diffWithHEAD();
9392
if (typeof diff === "string") {
@@ -101,7 +100,6 @@ async function getRepositoryDiff(api) {
101100
}
102101
}
103102

104-
// Fallback to shelling out to git in the workspace.
105103
const cwd = repo.rootUri?.fsPath;
106104
const diff = await gitDiffFallback(cwd || process.cwd(), true);
107105
return { repo, diff };

0 commit comments

Comments
 (0)