worktree property

String? worktree
final

Git's own name for the worktree (see Worktree.name), or null when the address names no worktree at all — which is where the shell sits before the first one opens.

Implementation

final String? worktree;