useGit API
    Preparing search index...

    Function isDirty

    • Check whether the working tree has uncommitted changes.

      Parameters

      Returns Promise<string>

      // Check if the working tree has any changes (tracked + untracked)
      await git.isDirty()

      // Check only tracked file modifications
      await git.isDirty({ trackedOnly: true })

      0.1.0