Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Thonus <github@popl.nl>2013-10-10 00:22:37 +0400
committerSteven Thonus <steven@ln2.nl>2013-11-17 19:35:34 +0400
commit856d4088fbc7da5b5b583acc11ab674c4452b402 (patch)
tree5c15bbfdec71d7830a40887b9440a1e0a24a9b55 /app/helpers/commits_helper.rb
parentc938833bd9f5373af5b8012df39a360517fd5261 (diff)
diff view on commit with parallel diff view
TODO: fix comment forms to respect left and right columns
Diffstat (limited to 'app/helpers/commits_helper.rb')
-rw-r--r--app/helpers/commits_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb
index c340eb30be1..654788a4c19 100644
--- a/app/helpers/commits_helper.rb
+++ b/app/helpers/commits_helper.rb
@@ -105,6 +105,10 @@ module CommitsHelper
branches.sort.map { |branch| link_to(branch, project_tree_path(project, branch)) }.join(", ").html_safe
end
+ def get_old_file(project, commit, diff)
+ project.repository.blob_at(commit.parent_id, diff.old_path) if commit.parent_id
+ end
+
protected
# Private: Returns a link to a person. If the person has a matching user and