scm: git: add includes and excludes options to lib revisions method (#8857)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8815 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -193,9 +193,17 @@ module Redmine
|
||||
cmd_args << "--reverse" if options[:reverse]
|
||||
cmd_args << "-n" << "#{options[:limit].to_i}" if options[:limit]
|
||||
from_to = ""
|
||||
from_to << "#{identifier_from}.." if identifier_from
|
||||
from_to << "#{identifier_to}" if identifier_to
|
||||
cmd_args << from_to if !from_to.empty?
|
||||
if identifier_from || identifier_to
|
||||
from_to << "#{identifier_from}.." if identifier_from
|
||||
from_to << "#{identifier_to}" if identifier_to
|
||||
cmd_args << from_to if !from_to.empty?
|
||||
else
|
||||
cmd_args += options[:includes] unless options[:includes].blank?
|
||||
unless options[:excludes].blank?
|
||||
cmd_args << "--not"
|
||||
cmd_args += options[:excludes]
|
||||
end
|
||||
end
|
||||
cmd_args << "--" << scm_iconv(@path_encoding, 'UTF-8', path) if path && !path.empty?
|
||||
|
||||
scm_cmd *cmd_args do |io|
|
||||
|
||||
Reference in New Issue
Block a user