Method: Repository::Git#latest_changesets
- Defined in:
- app/models/repository/git.rb
#latest_changesets(path, rev, limit = 10) ⇒ Object
238 239 240 241 242 243 |
# File 'app/models/repository/git.rb', line 238 def latest_changesets(path, rev, limit=10) revisions = scm.revisions(path, nil, rev, :limit => limit, :all => false) return [] if revisions.blank? changesets.where(:scmid => revisions.map(&:scmid)).to_a end |