summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-06-26 19:03:33 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-06-26 19:03:33 +0000
commit8a37b4c257bbbd9c5a5d2a19536f969a106e6ff5 (patch)
tree3014cee18963c87ba5018af64b6eb0c89d0a124e
parentba1cd850fdf8b3c672f2e7648f0e59165f916622 (diff)
parent2bad43f5eefa1b452183538cdf88970a413024b3 (diff)
downloadgitlab-ce-8a37b4c257bbbd9c5a5d2a19536f969a106e6ff5.tar.gz
Merge branch 'remove-unused-argument' into 'master'
Remove unused Gitlab::Git::Commit#to_diff argument See merge request !12466
-rw-r--r--lib/gitlab/git/commit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/git/commit.rb b/lib/gitlab/git/commit.rb
index d5d149f1423..b68378f5c0b 100644
--- a/lib/gitlab/git/commit.rb
+++ b/lib/gitlab/git/commit.rb
@@ -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.