summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-04 18:07:15 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-04 18:07:15 +0000
commit97b4ee2fef78dc255f2c9b450938f12c073c0831 (patch)
treeca434486c17a7f0304ddc2f038eaa44f0e1616a5 /lib
parent905a80977426cbebbaeef5f2b6080dddeea7454b (diff)
downloadredmine-97b4ee2fef78dc255f2c9b450938f12c073c0831.tar.gz
redmine-97b4ee2fef78dc255f2c9b450938f12c073c0831.zip
scm: git: split adapter entries() for browsing tree performance (#7047).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5639 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/git_adapter.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb
index f5f922134..592a1815a 100644
--- a/lib/redmine/scm/adapters/git_adapter.rb
+++ b/lib/redmine/scm/adapters/git_adapter.rb
@@ -107,6 +107,10 @@ module Redmine
end
def entries(path=nil, identifier=nil, options={})
+ entries_git(path, identifier, options)
+ end
+
+ def entries_git(path=nil, identifier=nil, options={})
path ||= ''
p = scm_iconv(@path_encoding, 'UTF-8', path)
entries = Entries.new
@@ -140,6 +144,7 @@ module Redmine
rescue ScmCommandAborted
nil
end
+ private :entries_git
def lastrev(path, rev)
return nil if path.nil?