#!/usr/bin/env bash # Copyright 2026 Hee-Suk Kim # SPDX-License-Identifier: GPL-3.0-only . lib.bash usage() { cat <] [] -n Truncate content to LINES (disables markdown rendering) -h Show this help EOF } n_lines= while [[ $# -gt 0 ]]; do case "$1" in -h) usage; exit 0 ;; -n) n_lines="${2:?$1 requires arg}"; shift 2 ;; -*) echo "unknown arg: $1" >&2; usage; exit 1 ;; *) break ;; esac done [[ $# -le 1 ]] || { usage >&2; die; } target="${1:-HEAD}" tid=$(sib rev-parse "$target" 2>/dev/null) || die invalid chain-ish $target show_args=() [[ -n $n_lines ]] && show_args=(-n "$n_lines") sib rev-list "$tid" | while read -r chain; do SIB_SHOW_RESOLVED=1 sib-show "${show_args[@]}" $chain echo echo --- echo done