Class: Git::Branch
- Inherits:
-
Object
- Object
- Git::Branch
- Defined in:
- lib/KCommercialPipeline/core/git.rb
Instance Method Summary collapse
Instance Method Details
#cherry_pick(commit) ⇒ Object
117 118 119 |
# File 'lib/KCommercialPipeline/core/git.rb', line 117 def cherry_pick(commit) cherry_pick_all([commit]) end |
#cherry_pick_all(commits) ⇒ Object
111 112 113 114 115 |
# File 'lib/KCommercialPipeline/core/git.rb', line 111 def cherry_pick_all(commits) unless commits.empty? @base.lib.command_lines_pub("cherry-pick", *commits) end end |
#roll_back ⇒ Object
121 122 123 |
# File 'lib/KCommercialPipeline/core/git.rb', line 121 def roll_back @base.lib.command_lines_pub("cherry-pick", "--abort") end |