ソースを参照

Merge pull request #414 from loopandlearn/update_release_script

remove --3way and add pauses
Marion Barker 1 年間 前
コミット
4de2c8dbb3
1 ファイル変更7 行追加2 行削除
  1. 7 2
      release.sh

+ 7 - 2
release.sh

@@ -34,14 +34,19 @@ update_follower () {
   echo; echo "🔄  Updating $DIR …"
   cd "$DIR"
 
+  echo; echo "If there are custom changes needed to the patch, make the change before continuing"
+  pause
+
   # 1 · Make sure we’re on a clean, up-to-date main
   echo_run git switch "$MAIN_BRANCH"
   echo_run git fetch
   echo_run git pull
 
-  # 2 · Apply the patch with 3-way fallback
-  if ! git apply --3way  --whitespace=nowarn "$PATCH_FILE"; then
+  # 2 · Apply the patch. Do not use 3way because commit history is not in common
+  if ! git apply --whitespace=nowarn "$PATCH_FILE"; then
     echo "‼️  Some hunks could not be merged automatically."
+    echo; echo "Use a different terminal to fix files before continuing"
+    pause
   fi
 
   # 3 · Pause if any conflict markers remain