updates: optimize rebase and merge
This commit is contained in:
@@ -21,17 +21,13 @@ module Feature
|
||||
error "USAGE: feature rebase" unless standard_branch
|
||||
error "invalid feature branch: #{feature_branch}" if standard_branches.include? feature_branch
|
||||
|
||||
git_checkout standard_branch
|
||||
git_fetch
|
||||
git_pull standard_branch
|
||||
git_checkout feature_branch
|
||||
git_rebase standard_branch
|
||||
|
||||
git_rebase ['origin', standard_branch].join('/')
|
||||
if remote_branch != ""
|
||||
git_remote_branch_delete feature_branch
|
||||
end
|
||||
|
||||
git_push feature_branch
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user