Sha256: 32d86c6c771c46c62ad55ed63049ee6f8e384a822af6887d01d1b4cb09894ea1
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
require 'straight_line/common/command' require 'straight_line/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.1.0 | lib/straight_line/common/git_commands/merge.rb |