Sha256: c0358dd686056d248df163ed2e94e43e7b1a0a1f91fddef1c7c23c444df5173c
Contents?: true
Size: 557 Bytes
Versions: 3
Compression:
Stored size: 557 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
3 entries across 3 versions & 1 rubygems