Skip to content

Commit ba8c770

Browse files
committed
Cherry pick function
1 parent 925c0fa commit ba8c770

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

EasyKey.git/ezk-git-atln.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ function mergeRebase () {
2222
nowaitonexit
2323
}
2424

25+
cherryPick() {
26+
echo "Last 15 commits"
27+
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -n 100
28+
echo "Enter commit you want to pick:"
29+
read cname
30+
[ "${cname}" = "" ] && waitonexit && return
31+
git cherry-pick "$cname"
32+
}
33+
2534
while ${continuemenu:=true}; do
2635
clear
2736
menuInit "Atlassian's View"
@@ -31,7 +40,7 @@ submenuHead "Working on your local repository"
3140
menuItem b "Saving changes" savingChanges
3241
menuItem c "Inspecting a repository" inspectingRepos
3342
menuItem d "Undoing changes" undoingChanges
34-
menuItem e "Rewriting history"
43+
menuItem e "Cherry pick commit" cherryPick
3544
echo
3645
showStatus
3746
choice

0 commit comments

Comments
 (0)