rosa-build/app/controllers/git/trees_controller.rb

13 lines
283 B
Ruby
Raw Normal View History

class Git::TreesController < Git::BaseController
def show
@treeish = params[:treeish] ? params[:treeish] : "master"
@path = params[:path]
@tree = @repository.tree(@treeish)
2011-03-11 10:06:14 +00:00
2011-03-11 16:31:06 +00:00
@tree = @tree / @path if @path
2011-03-10 13:19:23 +00:00
render :template => "git/repositories/show"
end
end