diff --git a/bin/switch-content-orphan-branch b/bin/switch-content-orphan-branch new file mode 100644 index 0000000..65c478c --- /dev/null +++ b/bin/switch-content-orphan-branch @@ -0,0 +1,7 @@ +#!/usr/bin/env nix-shell +#! nix-shell -p findutils coreutils git fzf -i bash + +find ./content/ -mindepth 2 -iname 'index.adoc' -printf '%P\n' \ + | xargs dirname \ + | fzf --prompt "Choose orphan content branch " --filepath-word --info=hidden \ + | xargs git switch --orphan