Class: GitDiffParser::DiffParser Deprecated

Inherits:
Object
  • Object
show all
Defined in:
lib/git_diff_parser/diff_parser.rb

Overview

Deprecated.

Parse entire ‘git diff` into Patches and Patch

Class Method Summary collapse

Class Method Details

.parse(contents) ⇒ Patches<Patch>

Deprecated.

Use Patches.parse instead.

Parse entire ‘git diff` into Patches and Patch

Parameters:

  • contents (String)

    ‘git diff` result

Returns:



13
14
15
16
# File 'lib/git_diff_parser/diff_parser.rb', line 13

def self.parse(contents)
  warn '[DEPRECATION] `DiffParser.parse` is deprecated.  Please use `Patches.parse` instead.'
  Patches.parse(contents)
end