提交 8a37b4c2 编写于 作者: S Sean McGivern

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

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

See merge request !12466
......@@ -175,8 +175,8 @@ module Gitlab
# 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.
def to_diff(options = {})
diff_from_parent(options).patch
def to_diff
diff_from_parent.patch
end
# Returns a diff object for the changes from this commit's first parent.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册