🐛 show all diff changes in vscode

This commit is contained in:
Nate Sesti 2024-05-15 15:15:34 -07:00
parent 5a4cc2bb72
commit b5052a3176

View file

@ -590,7 +590,17 @@ export class VsCodeIdeUtils {
}
repos.push(repo.state.HEAD?.name);
diffs.push(await repo.diff());
// Staged changes
// const a = await repo.diffIndexWithHEAD();
const staged = await repo.diff(true);
// Un-staged changes
// const b = await repo.diffWithHEAD();
const unstaged = await repo.diff(false);
// All changes
// const e = await repo.diffWith("HEAD");
// Only staged
// const f = await repo.diffIndexWith("HEAD");
diffs.push(`${staged}\n${unstaged}`);
}
const fullDiff = diffs.join("\n\n");