Commit 2bad43f5 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Remove unused Gitlab::Git::Commit#to_diff argument

parent 398bdce1
...@@ -175,8 +175,8 @@ module Gitlab ...@@ -175,8 +175,8 @@ module Gitlab
# Shows the diff between the commit's parent and the commit. # Shows the diff between the commit's parent and the commit.
# #
# Cuts out the header and stats from #to_patch and returns only the diff. # Cuts out the header and stats from #to_patch and returns only the diff.
def to_diff(options = {}) def to_diff
diff_from_parent(options).patch diff_from_parent.patch
end end
# Returns a diff object for the changes from this commit's first parent. # Returns a diff object for the changes from this commit's first parent.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment