Sha256: f6f1f57bae0e07d6ed010f4e9d35f89b0d9706875f8cd88794e41b8122560381

Contents?: true

Size: 295 Bytes

Versions: 12

Compression:

Stored size: 295 Bytes

Contents

require 'papa/command/base'

module Papa
  module Command
    module Git
      class PushForce < Command::Base
        def initialize(remote, branch_name)
          command = "git push #{remote} #{branch_name} --force-with-lease"
          super(command)
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
papa-1.2.0 lib/papa/command/git/push_force.rb
papa-1.1.0 lib/papa/command/git/push_force.rb
papa-1.0.0 lib/papa/command/git/push_force.rb
papa-0.7.2 lib/papa/command/git/push_force.rb
papa-0.7.1 lib/papa/command/git/push_force.rb
papa-0.7.0 lib/papa/command/git/push_force.rb
papa-0.6.2 lib/papa/command/git/push_force.rb
papa-0.6.1 lib/papa/command/git/push_force.rb
papa-0.6.0 lib/papa/command/git/push_force.rb
papa-0.5.0 lib/papa/command/git/push_force.rb
papa-0.4.1 lib/papa/command/git/push_force.rb
papa-0.4.0 lib/papa/command/git/push_force.rb