Check whether the index contains staged changes.
true if staged changes exist, otherwise false
true
false
if (await git.hasStagedDiff()) { console.log("There are staged changes")} Copy
if (await git.hasStagedDiff()) { console.log("There are staged changes")}
0.2.0
Check whether the index contains staged changes.