]> khamidou — GitHub mirrors - arcanist.git/commit
Support `git-format-patch` format in diff parser
authorepriestley <git@epriestley.com>
Sat, 15 Mar 2014 18:25:49 +0000 (11:25 -0700)
committerepriestley <git@epriestley.com>
Sat, 15 Mar 2014 18:25:49 +0000 (11:25 -0700)
commit46fe94db9f8ceed308ab589360d5add581ab3ed9
tree3af7ab6daca4c20880fe3627a928bc108c3f31e9
parent1e6d958b27dfe828292a98fa092fbc4d7fd55f9f
Support `git-format-patch` format in diff parser

Summary:
Fixes T4063. The `git format-patch` command produces a special header
and footer which we need to detect, strip, and parse.

Test Plan:
  - Added and ran unit tests.
  - Submitted a diff with `git format-patch HEAD^ --stdout | arc diff --raw`.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4063

Differential Revision: https://secure.phabricator.com/D8547
src/parser/ArcanistDiffParser.php
src/parser/__tests__/ArcanistDiffParserTestCase.php
src/parser/__tests__/diff/git-format-patch.gitdiff [new file with mode: 0644]
src/workflow/ArcanistDiffWorkflow.php