lib/gitlab_git/repository.rb
def diff_patches(from, to, options = {}, *paths)
        options ||= {}
        break_rewrites = options[:break_rewrites]
        actual_options = Diff.filter_diff_options(options.merge(paths: paths))

        diff = rugged.diff(from, to, actual_options)
        diff.find_similar!(break_rewrites: break_rewrites)
        diff.each_patch
      end
# Return the Rugged patches for the diff between +from+ and +to+.
Return the Rugged patches for the diff between +from+ and +to+.
Return the Rugged patches for the diff between + from + and + to + .
def diff_patches(from, to, options = {}, *paths)
        options ||= {}
        break_rewrites = options[:break_rewrites]
        actual_options = Diff.filter_diff_options(options.merge(paths: paths))
        diff = rugged.diff(from, to, actual_options)
        diff.find_similar!(break_rewrites: break_rewrites)
        diff.each_patch
      end
def diff_patches ( from , to , options = { } , * paths ) options ||= { } break_rewrites = options [ :break_rewrites ] actual_options = Diff . filter_diff_options ( options . merge ( paths : paths ) ) diff = rugged . diff ( from , to , actual_options ) diff . find_similar! ( break_rewrites : break_rewrites ) diff . each_patch end
Return the Rugged patches for the diff between +from+ and +to+.
Return the Rugged patches for the diff between + from + and + to + .
from
to
options
paths