mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-23 15:19:00 +00:00
Create script for managing code-specific content
This commit is contained in:
parent
4fcb349415
commit
470fe23ab4
7
bin/switch-content-orphan-branch
Normal file
7
bin/switch-content-orphan-branch
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user