useGit API
    Preparing search index...

    Function diffCommits

    • Show changes between two commits.

      Parameters

      • this: useGit API
      • from: string

        Base commit.

      • to: string

        Target commit.

      • Optionalpaths: readonly string[]

        Optional paths to limit the diff output.

      Returns Promise<string>

      await git.diffCommits("HEAD~1", "HEAD")
      await git.diffCommits("main", "dev", ["src"])

      0.2.0