From 1b4651ec18865f17966201533b7db04b9b31f75a Mon Sep 17 00:00:00 2001 From: spacewander Date: Wed, 4 Feb 2026 10:21:23 +0800 Subject: [PATCH] add details when multiple active operations found Signed-off-by: spacewander --- bin/git-abort | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/git-abort b/bin/git-abort index af1712ba4..36c0c9a5c 100755 --- a/bin/git-abort +++ b/bin/git-abort @@ -21,7 +21,11 @@ validate_op() { exit 1 fi if [[ "$(echo "$op" | wc -l)" -gt 1 ]]; then - echo "Multiple active operations found: $op" >&2 + echo "Multiple active operations found:" >&2 + gitdir="$(git rev-parse --git-dir)" || exit + for o in $op; do + echo " - $o: HEAD: $(cat "${gitdir}/${o}_HEAD")" >&2 + done exit 1 fi }