# File lib/gitlab_git/repository.rb, line 405
      def diff_text(from, to, options = {}, *paths)
        # NOTE: It would be simpler to use the Rugged::Diff#patch method, but
        # that formats the diff text differently than Rugged::Patch#to_s for
        # changes to binary files.
        diff_patches(from, to, options, *paths).map do |p|
          p.to_s
        end.join("\n")
      end