Skip to content

workdir ​

Get the path of the working directory for this repository.

Signature ​

ts
class Repository {
  workdir(): string | null;
}

Returns ​

  • null | string

    The path of the working directory for this repository.
    If this repository is bare, then null is returned.
    ```

Released under the MIT License.