#!/bin/bash

# shellcheck shell=bash

# List worktrees as JSON
bridge_list_worktrees() {
  if git_require_repo_root >/dev/null 2>&1; then
    json_worktrees
  else
    json_error "Not a git repository"
  fi
}