Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-06-26 19:50:26 +0300
committerJacob Vosmaer <jacob@gitlab.com>2017-06-26 19:50:26 +0300
commit2bad43f5eefa1b452183538cdf88970a413024b3 (patch)
tree3c634309a4a0d0350e71a8878879d24cbfff0534
parent398bdce19010ea2be1092ec61b8d6c60e6dddf00 (diff)
Remove unused Gitlab::Git::Commit#to_diff argument
-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.