#!/usr/bin/env bash set -euo pipefail repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" cd "${repo_root}" mapfile -d '' -t staged_paths < <(git diff --cached --name-only --diff-filter=ACMRD -z) if [[ "${#staged_paths[@]}" -eq 0 ]]; then exit 0 fi exec just check read "${staged_paths[@]}"