[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/infrastructure/diff/ -> PhabricatorDifferenceEngine.php (summary)

Utility class which encapsulates some shared behavior between different applications which render diffs.

File Size: 172 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  setIgnoreWhitespace()
  setOldName()
  setNewName()
  generateRawDiffFromFileContent()
  generateChangesetFromFileContent()

Functions
Functions that are not part of a class:

setIgnoreWhitespace($ignore_whitespace)   X-Ref
If true, ignore whitespace when computing differences.

param: bool Ignore whitespace?
return: this

setOldName($old_name)   X-Ref
Set the name to identify the old file with. Primarily cosmetic.

param: string Old file name.
return: this

setNewName($new_name)   X-Ref
Set the name to identify the new file with. Primarily cosmetic.

param: string New file name.
return: this

generateRawDiffFromFileContent($old, $new)   X-Ref
Generate a raw diff from two raw files. This is a lower-level API than
@{method:generateChangesetFromFileContent}, but may be useful if you need
to use a custom parser configuration, as with Diffusion.

param: string Entire previous file content.
param: string Entire current file content.
return: string Raw diff between the two files.

generateChangesetFromFileContent($old, $new)   X-Ref
Generate an @{class:DifferentialChangeset} from two raw files. This is
principally useful because you can feed the output to
@{class:DifferentialChangesetParser} in order to render it.

param: string Entire previous file content.
param: string Entire current file content.
return: @{class:DifferentialChangeset} Synthetic changeset.



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1