diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-05 11:42:46 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-05 11:42:46 +0000 |
commit | 12f4b8b6d94c1b78eae8cdcfc2e9557cf0ddab00 (patch) | |
tree | 07c320247a7840397dcb477dc3578e6c24fb2310 /app | |
parent | 931fd58de6e21fc604a661320d2019c18063f466 (diff) | |
download | redmine-12f4b8b6d94c1b78eae8cdcfc2e9557cf0ddab00.tar.gz redmine-12f4b8b6d94c1b78eae8cdcfc2e9557cf0ddab00.zip |
scm: git: override entries() in model for browsing tree performance (#7047).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5655 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/repository/git.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index 73839a305..8453b633b 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -70,6 +70,10 @@ class Repository::Git < Repository changesets.find(:first, :conditions => ['scmid LIKE ?', "#{name}%"]) end + def entries(path=nil, identifier=nil) + scm.entries(path, identifier) + end + # In Git and Mercurial, revisions are not in date order. # Mercurial fixed issues. # * Redmine Takes Too Long On Large Mercurial Repository |