Method: Dolt::ControllerActions#history
- Defined in:
- lib/libdolt/controller_actions.rb
#history(repo, ref, path, count, custom_data = {}) ⇒ Object
144 145 146 147 148 149 150 151 |
# File 'lib/libdolt/controller_actions.rb', line 144 def history(repo, ref, path, count, custom_data = {}) if oid = lookup_ref_oid(repo, ref) return redirect(router.history_url(repo, oid, path), 307) end data = (custom_data || {}).merge(lookup.history(repo, u(ref), path, count)) [200, headers(:ref => ref), [renderer.render(:commits, data)]] end |