Sha256: 9b548f74b68b30f618d0c974fb1a919c943d17a7e60963f402311f5e9d507e46
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
require 'common/command' require 'common/git_commands' module GitCommands # Merge a branch into base class Merge < Command include GitCommands def initialize(base, branch) super('git') arg 'checkout' arg base merge_command = Command.new('git') .arg('merge --no-ff') .arg(branch) sub_command merge_command end def run(*args) super true rescue ShellError => e handle_merge_conflict e end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
straight_line-0.1.0.0 | lib/common/git_commands/merge.rb |