Skip to content
Snippets Groups Projects
Commit 8a37b4c2 authored by Sean McGivern's avatar Sean McGivern
Browse files

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

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

See merge request !12466
parents ba1cd850 2bad43f5
No related branches found
No related tags found
No related merge requests found
Loading
@@ -175,8 +175,8 @@ def parent_id
Loading
@@ -175,8 +175,8 @@ def parent_id
# 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.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment