Add diff format to commit#show

This commit is contained in:
Riyad Preukschas 2012-11-22 20:49:44 +01:00
parent 246faa3d7a
commit 3b7c2adf0a
2 changed files with 2 additions and 0 deletions

View file

@ -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