From 52e0707681ff62c02f107ceb6dac8480d675b340 Mon Sep 17 00:00:00 2001 From: Carl Sorensen Date: Sat, 2 Oct 2010 16:42:34 -0600 Subject: [PATCH] Add warning to update-patch-version.sh --- scripts/auxiliar/update-patch-version.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/auxiliar/update-patch-version.sh b/scripts/auxiliar/update-patch-version.sh index ac30788f81..22286274db 100755 --- a/scripts/auxiliar/update-patch-version.sh +++ b/scripts/auxiliar/update-patch-version.sh @@ -17,5 +17,8 @@ then exit 1 fi -git grep --name-only $1 | xargs sed -i -e s/$1/$2/g +echo "Warning -- if this script is run after a branch is rebased," +echo " unintended changes will occur. It would be best to revert" +echo " the rebase commit before running." +git grep --name-only $1 | xargs sed -i -e s/$1/$2/g -- 2.39.5