git: use '--no-renames' option in 'show' command (#25371)

git-svn-id: http://svn.redmine.org/redmine/trunk@16428 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2017-03-24 15:53:04 +00:00
parent 21f8ce885d
commit 14cfe2c67a

View File

@@ -314,10 +314,10 @@ module Redmine
cmd_args = [] cmd_args = []
if identifier_to if identifier_to
cmd_args << "diff" << "--no-color" << identifier_to << identifier_from cmd_args << "diff" << "--no-color" << identifier_to << identifier_from
cmd_args << '--no-renames' if self.class.client_version_above?([2, 9])
else else
cmd_args << "show" << "--no-color" << identifier_from cmd_args << "show" << "--no-color" << identifier_from
end end
cmd_args << '--no-renames' if self.class.client_version_above?([2, 9])
cmd_args << "--" << scm_iconv(@path_encoding, 'UTF-8', path) unless path.empty? cmd_args << "--" << scm_iconv(@path_encoding, 'UTF-8', path) unless path.empty?
diff = [] diff = []
git_cmd(cmd_args) do |io| git_cmd(cmd_args) do |io|