new script: git-cherry-select
This commit is contained in:
parent
068be0ab80
commit
e4f4601484
1 changed files with 9 additions and 0 deletions
9
devel/git-cherry-select
Executable file
9
devel/git-cherry-select
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue