new script: git-cherry-select

This commit is contained in:
crater2150 2026-01-11 14:06:54 +01:00
parent 068be0ab80
commit e4f4601484

9
devel/git-cherry-select Executable file
View file

@ -0,0 +1,9 @@
#!/bin/zsh
#dep:fzf git
if [[ -z $1 || $1 == "-h" || $1 == "--help" ]]; then
echo "Usage: ${0:t} <branch>"
exit 1
fi
git log --oneline HEAD..$1 \
| fzf -m --preview "echo {} | awk '\$0=\$1' | xargs git show --color=always" \
| awk '$0=$1' | xargs git cherry-pick