scm: mercurial: add --git option in 'hg diff' (#7253).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4668 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
08c093bc85
commit
1ff52e5c5a
|
@ -159,7 +159,7 @@ module Redmine
|
|||
else
|
||||
diff_args = "-c #{hgrev(identifier_from)}"
|
||||
end
|
||||
cmd = "#{HG_BIN} -R #{target('')} diff --nodates #{diff_args}"
|
||||
cmd = "#{HG_BIN} -R #{target('')} diff --nodates --git #{diff_args}"
|
||||
cmd << " -I #{target(path)}" unless path.empty?
|
||||
diff = []
|
||||
shellout(cmd) do |io|
|
||||
|
|
Loading…
Reference in New Issue