This commit is contained in:
PJ Hyett 2009-12-01 17:19:03 -08:00
Родитель 1911fe1459
Коммит 5251fd61f6
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -162,7 +162,12 @@ module Grit
end end
def show def show
diff = @repo.git.show({:full_index => true, :pretty => 'raw'}, @id) if parents.size > 1
diff = @repo.git.native("diff #{parents[0].id}..#{parents[1].id}", {:full_index => true})
else
diff = @repo.git.show({:full_index => true, :pretty => 'raw'}, @id)
end
if diff =~ /diff --git a/ if diff =~ /diff --git a/
diff = diff.sub(/.+?(diff --git a)/m, '\1') diff = diff.sub(/.+?(diff --git a)/m, '\1')
else else