Method: Dolt::ControllerActions#tree_history
- Defined in:
- lib/libdolt/controller_actions.rb
#tree_history(repo, ref, path, count = 1, custom_data = {}) ⇒ Object
160 161 162 163 164 165 166 167 168 169 |
# File 'lib/libdolt/controller_actions.rb', line 160 def tree_history(repo, ref, path, count = 1, custom_data = {}) if oid = lookup_ref_oid(repo, ref) return redirect(router.tree_history_url(repo, oid, path), 307) end data = (custom_data || {}).merge(lookup.tree_history(repo, u(ref), path, count)) [200, headers(:content_type => "application/json", :ref => ref), [ renderer.render(:tree_history, data, :layout => nil) ]] end |