From 3b7c2adf0aead7438a0319d21a050c30b408c03a Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Thu, 22 Nov 2012 20:49:44 +0100 Subject: Add diff format to commit#show --- app/controllers/commit_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/controllers/commit_controller.rb') 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 -- cgit v1.2.1