10 lines
485 B
Plaintext
10 lines
485 B
Plaintext
- commit_id = commit_diff.deleted_file ? @commit.parents.first.id : @commit.id
|
|
.file
|
|
%a{:name => "diff-#{commit_diff_counter}"}
|
|
.top
|
|
.l= h(commit_diff.a_path.reverse.truncate(120, :separator => '/').reverse)
|
|
- if commit_diff.b_path.present?
|
|
.r= link_to "view file @ #{short_hash_id(commit_id)}", blob_path(@project, commit_id, commit_diff.b_path)
|
|
.clear
|
|
|
|
.diff_data= render_diff(commit_diff) unless (@git_repository.tree(commit_id) / commit_diff.b_path).binary? |