File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 p - push force push changes to remote
77 d - dryrun show what would be done without making changes
88 - target target target branch to rebase commits onto
9- - source source source branch to take commits from (default: current branch)
9+ - source source source branch to take commits from (default: current branch)
1010 help
1111)
1212
Original file line number Diff line number Diff line change 4949# ### PREVENT GIT EDITOR PROMPT
5050GIT_EDITOR=:
5151
52- current =$( echo " $main " | sed -E ' s/([0-9]+)\.([0-9]+)\.([0-9]+)/\1.\2.X/' )
52+ hotfix =$( echo " $main " | sed -E ' s/([0-9]+)\.([0-9]+)\.([0-9]+)/\1.\2.X/' )
5353
5454# ### START HOTFIX
55- git flow hotfix start $current
55+ git flow hotfix start $hotfix
5656
5757# ### RESTORE STATUS AND HANDLE REBASE
5858if [ -n " $rebase " ]; then
5959
60- zz_log i " Rebasing: inverting develop and hotfix branches..."
61-
62- git fix base hotfix/$current develop
60+ zz_log i " Rebasing develop commits onto hotfix branch..."
61+ git fix base -p hotfix/$hotfix
6362fi
6463
You can’t perform that action at this time.
0 commit comments