Skip to content

isWorktree ​

Tests whether this repository is a worktree.

Signature ​

ts
class Repository {
  isWorktree(): boolean;
}

Returns ​

  • boolean

    Returns true if repository is a worktree.

Released under the MIT License.