2011-03-10 12:39:24 +00:00
|
|
|
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 12:39:24 +00:00
|
|
|
|
2011-03-10 13:19:23 +00:00
|
|
|
render :template => "git/repositories/show"
|
2011-03-10 12:39:24 +00:00
|
|
|
end
|
|
|
|
end
|