Sha256: 4a10e305120108dda73e1e2b906d6e45ba2eb54a3aeb53d835ee7e30cc65aa67

Contents?: true

Size: 439 Bytes

Versions: 7

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

require "open3"
require "rfix"
require "rfix/log"
require "rfix/cmd"

module Rfix::GitHelper
  include Rfix::Log
  include Rfix::Cmd

  def git(*args, &block)
    cmd("git", *args, &block)
  end

  def params
    [
      "--word-diff-regex=[^[:space:]]",
      "--no-renames",
      "--no-merges",
      "--first-parent",
      "--diff-filter=AM",
      "-U0",
      "--no-color",
      "-p"
    ]
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rfix-1.0.7.pre.65 lib/rfix/git_helper.rb
rfix-1.0.7.pre.61 lib/rfix/git_helper.rb
rfix-1.0.6.pre.60 lib/rfix/git_helper.rb
rfix-1.0.7 lib/rfix/git_helper.rb
rfix-1.0.5.pre.58 lib/rfix/git_helper.rb
rfix-1.0.6 lib/rfix/git_helper.rb
rfix-1.0.5.pre.pre.57 lib/rfix/git_helper.rb