Commit 8a37b4c2 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'remove-unused-argument' into 'master'

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

See merge request !12466
parents ba1cd850 2bad43f5
...@@ -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