summaryrefslogtreecommitdiff
path: root/app/controllers/commit_controller.rb
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-22 20:49:44 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-22 20:49:44 +0100
commit3b7c2adf0aead7438a0319d21a050c30b408c03a (patch)
tree3e8cb77e0d89fa888672b03fb071b57d87b9edb2 /app/controllers/commit_controller.rb
parent246faa3d7a60ea2296a24d0c5de1a71a7a48854b (diff)
downloadgitlab-ce-3b7c2adf0aead7438a0319d21a050c30b408c03a.tar.gz
Add diff format to commit#show
Diffstat (limited to 'app/controllers/commit_controller.rb')
-rw-r--r--app/controllers/commit_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/commit_controller.rb b/app/controllers/commit_controller.rb
index 50556954817..d671e9f9e9e 100644
--- a/app/controllers/commit_controller.rb
+++ b/app/controllers/commit_controller.rb
@@ -26,6 +26,7 @@ class CommitController < ProjectResourceController
end
end
+ format.diff { render text: @commit.to_diff }
format.patch { render text: @commit.to_patch }
end
end