diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-06-26 18:50:26 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-06-26 18:50:26 +0200 |
commit | 2bad43f5eefa1b452183538cdf88970a413024b3 (patch) | |
tree | 3c634309a4a0d0350e71a8878879d24cbfff0534 | |
parent | 398bdce19010ea2be1092ec61b8d6c60e6dddf00 (diff) | |
download | gitlab-ce-2bad43f5eefa1b452183538cdf88970a413024b3.tar.gz |
Remove unused Gitlab::Git::Commit#to_diff argument
-rw-r--r-- | lib/gitlab/git/commit.rb | 4 |
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. |