diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-11-22 20:49:44 +0100 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-11-22 20:49:44 +0100 |
commit | 3b7c2adf0aead7438a0319d21a050c30b408c03a (patch) | |
tree | 3e8cb77e0d89fa888672b03fb071b57d87b9edb2 /app/controllers/commit_controller.rb | |
parent | 246faa3d7a60ea2296a24d0c5de1a71a7a48854b (diff) | |
download | gitlab-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.rb | 1 |
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 |