Show changes staged in the index.
Optional
Optional paths to limit the diff output.
await git.diffStaged()await git.diffStaged(["src/index.ts"]) Copy
await git.diffStaged()await git.diffStaged(["src/index.ts"])
0.2.0
Show changes staged in the index.