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)