Copied!

Representation of a diff.

CloneableInstantiable
Methods
public __construct(array $files, $rawDiff)
 

Constructs a new diff for a given revision.

  • param array $files The files
  • param string $rawDiff The raw diff
public static fromArray(array $array)
 

Create a new instance of Diff from an array.

public getFiles()
 

Get list of files modified in the diff's revision.

public getRawDiff()
 

Returns the raw diff.

  • return string The raw diff
public static parse( $rawDiff)
public setRepository(Gitonomy\Git\Repository $repository)
public toArray()
 

Export a diff as array.

  • return array The array
Properties
protected $files
protected $rawDiff
 
  • var string
Methods
public static fromArray(array $array)
 

Create a new instance of Diff from an array.

public static parse( $rawDiff)
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration