tarlatan
    Preparing search index...

    Function decodeWorktreeList

    • Decodes the text of git worktree list --porcelain -z into its entries, in listing order. Empty text is no entries. Fails when a record has no worktree attribute, an empty path or branch, or a HEAD that is not an object id.

      Parameters

      • text: string

      Returns Result<
          readonly {
              bare: boolean;
              branch: Option<string>;
              detached: boolean;
              head: Option<string & Brand<"Revision">>;
              lock: Option<{ reason: Option<string> }>;
              path: string;
          }[],
          SchemaError,
      >