Documentation for Simbo's Packages
    Preparing search index...
    • Checks if the given directory is the root of a git repository.

      Only succeeds on directories that contain a .git folder.

      Git submodules or worktrees are not considered as roots.

      Parameters

      • workingDir: string = ...

        The directory in which to check for the Git root. Defaults to the current working directory.

      Returns Promise<boolean>

      A promise that resolves to true if the directory is a Git root, false otherwise.