# File lib/gitlab_git/commit.rb, line 229
      def to_patch(options = {})
        begin
          raw_commit.to_mbox(options)
        rescue Rugged::InvalidError => ex
          if ex.message =~ /Commit \w+ is a merge commit/
            'Patch format is not currently supported for merge commits.'
          end
        end
      end