# File lib/branch.rb, line 221 def cp(opts) opts[:commits].each(){|commit| prev_head=@repo.runGit("rev-parse HEAD") log(:INFO, "Applying #{@repo.getCommitHeadline(commit)}") @repo.runGit("cherry-pick #{commit}") if $? != 0 then log(:WARNING, "Cherry pick failure. Starting bash for manual fixes. Exit shell to continue") @repo.runBash() end new_head=@repo.runGit("rev-parse HEAD") # Do not make commit pretty if it was not applied if new_head != prev_head make_pretty(commit) end } end