comparison lib/redmine/scm/adapters/git_adapter.rb @ 14:1d32c0a0efbf

* Update to SVN trunk (revisions 3892-4040)
author Chris Cannam
date Wed, 25 Aug 2010 16:30:24 +0100
parents 513646585e45
children 94944d00e43c
comparison
equal deleted inserted replaced
4:9cc62779c13a 14:1d32c0a0efbf
112 end 112 end
113 113
114 def revisions(path, identifier_from, identifier_to, options={}) 114 def revisions(path, identifier_from, identifier_to, options={})
115 revisions = Revisions.new 115 revisions = Revisions.new
116 116
117 cmd = "#{GIT_BIN} --git-dir #{target('')} log --raw --date=iso --pretty=fuller" 117 cmd = "#{GIT_BIN} --git-dir #{target('')} log --raw --date=iso --pretty=fuller "
118 cmd << " --reverse" if options[:reverse] 118 cmd << " --reverse " if options[:reverse]
119 cmd << " --all" if options[:all] 119 cmd << " --all " if options[:all]
120 cmd << " -n #{options[:limit]} " if options[:limit] 120 cmd << " -n #{options[:limit]} " if options[:limit]
121 cmd << " #{shell_quote(identifier_from + '..')} " if identifier_from 121 cmd << "#{shell_quote(identifier_from + '..')}" if identifier_from
122 cmd << " #{shell_quote identifier_to} " if identifier_to 122 cmd << "#{shell_quote identifier_to}" if identifier_to
123 cmd << " --since=#{shell_quote(options[:since].strftime("%Y-%m-%d %H:%M:%S"))}" if options[:since] 123 cmd << " --since=#{shell_quote(options[:since].strftime("%Y-%m-%d %H:%M:%S"))}" if options[:since]
124 cmd << " -- #{path}" if path && !path.empty? 124 cmd << " -- #{path}" if path && !path.empty?
125 125
126 shellout(cmd) do |io| 126 shellout(cmd) do |io|
127 files=[] 127 files=[]