useGit API
    Preparing search index...

    Function diffStaged

    • Show changes staged in the index.

      Parameters

      • this: useGit API
      • Optionalpaths: readonly string[]

        Optional paths to limit the diff output.

      Returns Promise<string>

      await git.diffStaged()
      await git.diffStaged(["src/index.ts"])

      0.2.0