Add diff format to commit#show
This commit is contained in:
parent
246faa3d7a
commit
3b7c2adf0a
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue