Method: Gitgo::Controllers::Code#show_blob

Defined in:
lib/gitgo/controllers/code.rb

#show_blob(treeish, path) ⇒ Object



124
125
126
127
128
129
130
131
132
133
134
# File 'lib/gitgo/controllers/code.rb', line 124

def show_blob(treeish, path)
  commit = grit.commit(treeish) || not_found
  blob = commit.tree / path || not_found

  erb :blob, :locals => {
    :commit => commit, 
    :treeish => treeish, 
    :blob => blob, 
    :path => path
  }
end