lib/gitlab/satellite/merge_action.rb
# Get commit as an email patch
Get commit as an email patch
Get commit as an email patch
def format_patch
        in_locked_and_timed_satellite do |merge_repo|
          prepare_satellite!(merge_repo)
          update_satellite_source_and_target!(merge_repo)
          patch = merge_repo.git.format_patch(default_options({stdout: true}), "origin/#{merge_request.target_branch}..source/#{merge_request.source_branch}")
        end
      rescue Grit::Git::CommandFailed => ex
        handle_exception(ex)
      end
def format_patch in_locked_and_timed_satellite do | merge_repo | prepare_satellite! ( merge_repo ) update_satellite_source_and_target! ( merge_repo ) patch = merge_repo . git . format_patch ( default_options ( { stdout : true } ) , "origin/#{merge_request.target_branch}..source/#{merge_request.source_branch}" ) end rescue Grit :: Git :: CommandFailed => ex handle_exception ( ex ) end
Get commit as an email patch
Get commit as an email patch