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
This commit is contained in:
Toshi MARUYAMA 2011-05-04 18:07:15 +00:00
parent 905a809774
commit 97b4ee2fef
1 changed files with 5 additions and 0 deletions

View File

@ -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?