<% title @repo.name, headline: "Commit #{@commit.oid[0..6]}" %> <%= partial :header, locals: { repo: @repo } %>
<%= simple_format h(@commit.message) %>
<%= gravatar_image_tag @commit.author[:email], class: 'img-rounded', alt: @commit.author[:name] %> <%= @commit.author[:name] %> authored at <%= time_tag @commit.author[:time] %> <% unless @commit.committer[:name] == @commit.author[:name] %>
<%= gravatar_image_tag @commit.committer[:email], class: 'img-rounded', alt: @commit.committer[:name] %> <%= @commit.committer[:name] %> committed at <%= time_tag @commit.committer[:time] %>
<% end %>

as seen in: <% @repo.branches_with(@commit.oid).each do |branch| %> <%= h branch.name %> <% end %>

commit:

tree:

<% @commit.parents.size.times do %>

parent:

<% end %>

<%= @commit.oid %>

<%= @commit.tree.oid %>

<% @commit.parents.each do |parent| %>

<%= parent.oid %>

<% end %>

download <%= patch_link @commit, @repo.param %>

<% diff = @commit.parents.first.diff(@commit) %>

<%= file_listing diff %>
<% diff.patches.each_with_index do |patch, index| %>

file <%= patch.delta.new_file[:path] %>

<% unless patch.delta.deleted? %> view file <% end %>

<% patch.hunks.each do |hunk| %> <%= highlight_diff hunk %> <% end %> <% end %>