diff options
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 |