Sha256: f5b279148960f0344ea823a3d06d02a7f380f8a8fa7216a76670c0d4685a0f4f

Contents?: true

Size: 423 Bytes

Versions: 6

Compression:

Stored size: 423 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)
    cmd("git", *args)
  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

6 entries across 6 versions & 1 rubygems

Version Path
rfix-1.0.5 lib/rfix/git_helper.rb
rfix-1.0.4 lib/rfix/git_helper.rb
rfix-1.0.3 lib/rfix/git_helper.rb
rfix-1.0.2 lib/rfix/git_helper.rb
rfix-1.0.1 lib/rfix/git_helper.rb
rfix-1.0.0 lib/rfix/git_helper.rb