From 4ea7e054191a86dd1764255529b459de2dca23a0 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 31 Aug 2026 11:33:13 -0700 Subject: [PATCH] Meta/update-from-lore: go interactive at the end to save typing --- update-from-lore.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/update-from-lore.sh b/update-from-lore.sh index 5b1b1e60c7..6b361c0b85 100755 --- a/update-from-lore.sh +++ b/update-from-lore.sh @@ -75,3 +75,16 @@ tee ./+b4am.mbx | git am -s3 && rm -f ./+b4am.mbx && git range-diff --notes=amlog --crea=999 @{-1}... +echo -n >&2 "Update [y/n]? " +while read yesno +do + case "$yesno" in + [Yy]*) + git co -B @{-1} + exit 0 + ;; + [Nn]*) + exit 1 + ;; + esac +done