#!/bin/bash

# shellcheck shell=bash

# Get git status
bridge_git_status() {
  if git_require_repo_root >/dev/null 2>&1; then
    status_output="$(git status --porcelain 2>/dev/null || echo "")"
    echo "\"$status_output\""
  else
    json_error "Not a git repository"
  fi
}