From 3daffb8eb964aca3c180faf79beaf4bdf879dfbf Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 23 May 2026 10:49:44 -0400 Subject: [PATCH] xo-cmake: + xo-build --split-umbrella-remote also with explicit --rejoin --- xo-cmake/bin/xo-build.in | 73 ++++++++++++++++++++++++++-------------- 1 file changed, 48 insertions(+), 25 deletions(-) diff --git a/xo-cmake/bin/xo-build.in b/xo-cmake/bin/xo-build.in index 4f1caf92..b585670b 100644 --- a/xo-cmake/bin/xo-build.in +++ b/xo-cmake/bin/xo-build.in @@ -6,7 +6,11 @@ usage() { cat < 0 ]]; do --add-umbrella-remote) add_umbrella_remote_flag=1 ;; + --split-umbrella-remote) + split_umbrella_remote_flag=1 + ;; --pull-umbrella-remote) pull_umbrella_remote_flag=1 ;; @@ -265,6 +275,19 @@ if [[ $add_umbrella_remote_flag -eq 1 ]]; then fi fi +if [[ $split_umbrella_remote_flag -eq 1 ]]; then + if [[ -n "$xoname" ]]; then + branch=$(git branch --show-current) + cmd="git subtree split --rejoin --prefix=$xoname $xoname ${branch}" + + if [[ $noop_flag -eq 1 ]]; then + echo $cmd + else + $cmd + fi + fi +fi + if [[ $pull_umbrella_remote_flag -eq 1 ]]; then if [[ -n "$xoname" ]]; then branch=$(git branch --show-current)