]> khamidou — GitHub mirrors - arcanist.git/commit
Allow ArcanistDiffParser to parse `diff.suppress-blank-empty` Git diffs
authorepriestley <git@epriestley.com>
Thu, 15 Nov 2012 23:47:35 +0000 (15:47 -0800)
committerepriestley <git@epriestley.com>
Thu, 15 Nov 2012 23:47:35 +0000 (15:47 -0800)
commit2d3d7be09a48ec34f3eb00cb390526f6bd2f97cf
tree1a4e7b1089e0b7cf7a9bf874c7ca8602f52d36ed
parent515399c0f6a2711d29a42c0782eaf8d5cf7cc212
Allow ArcanistDiffParser to parse `diff.suppress-blank-empty` Git diffs

Summary: See D3963. Instead, parse these diffs so they'll work with `--raw`, etc.

Test Plan:
Generated a failing diff, added it as a test case. Fixed issue. Ran test suite. Ran `arc` against it:

  $ git -c diff.suppress-blank-empty=true diff HEAD | arc diff --raw --only --conduit-uri=http://local.aphront.com:8080/
  Reading diff from stdin...
  Created a new Differential diff:
          Diff URI: http://local.aphront.com:8080/differential/diff/103/

  Included changes:
    M       things

Reviewers: vrana, jiiix, btrahan

Reviewed By: vrana

CC: aran
Differential Revision: https://secure.phabricator.com/D3969
src/parser/ArcanistDiffParser.php
src/parser/__tests__/ArcanistDiffParserTestCase.php
src/parser/__tests__/diff/suppress-blank-empty.gitdiff [new file with mode: 0644]