2012-03-21 19:55:14 +00:00
|
|
|
- commit_id = commit_diff.deleted_file ? @commit.parents.first.id : @commit.id
|
2012-02-29 01:30:22 +00:00
|
|
|
.file
|
2012-03-21 19:55:14 +00:00
|
|
|
%a{:name => h(commit_diff.a_path)}
|
2012-02-29 01:30:22 +00:00
|
|
|
.top
|
2012-06-07 20:19:18 +01:00
|
|
|
.l= h(commit_diff.a_path.reverse.truncate(120, :separator => '/').reverse)
|
2012-02-29 01:30:22 +00:00
|
|
|
- if commit_diff.b_path.present?
|
2012-03-21 19:55:14 +00:00
|
|
|
.r= link_to "view file @ #{short_hash_id(commit_id)}", blob_path(@project, commit_id, commit_diff.b_path)
|
2012-02-29 01:30:22 +00:00
|
|
|
.clear
|
2011-04-01 04:44:21 +01:00
|
|
|
|
2012-03-21 19:55:14 +00:00
|
|
|
.diff_data= render_diff(commit_diff) unless (@git_repository.tree(commit_id) / commit_diff.b_path).binary?
|