File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff 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+
2534while ${continuemenu:= true} ; do
2635clear
2736menuInit " Atlassian's View"
@@ -31,7 +40,7 @@ submenuHead "Working on your local repository"
3140menuItem b " Saving changes" savingChanges
3241menuItem c " Inspecting a repository" inspectingRepos
3342menuItem d " Undoing changes" undoingChanges
34- menuItem e " Rewriting history "
43+ menuItem e " Cherry pick commit " cherryPick
3544echo
3645showStatus
3746choice
You can’t perform that action at this time.
0 commit comments