[#369] remove detecting renames from a diff stats method
This commit is contained in:
parent
dc2532c9bc
commit
c71e05ad3c
|
@ -83,7 +83,7 @@ module Grit
|
||||||
def diff_stats(a,b)
|
def diff_stats(a,b)
|
||||||
stats = []
|
stats = []
|
||||||
Dir.chdir(path) do
|
Dir.chdir(path) do
|
||||||
lines = self.git.native(:diff, {numstat: true, M: true}, "#{a}...#{b}").split("\n")
|
lines = self.git.native(:diff, {numstat: true}, "#{a}...#{b}").split("\n")
|
||||||
while !lines.empty?
|
while !lines.empty?
|
||||||
files = []
|
files = []
|
||||||
while lines.first =~ /^([-\d]+)\s+([-\d]+)\s+(.+)/
|
while lines.first =~ /^([-\d]+)\s+([-\d]+)\s+(.+)/
|
||||||
|
|
Loading…
Reference in New Issue