Page MenuHomePhabricator

Support `git-format-patch` format in diff parser
ClosedPublic

Authored by epriestley on Mar 15 2014, 4:27 PM.
Tags
None
Referenced Files
F19818012: D8547.id.diff
Thu, Mar 5, 4:59 PM
F19671196: D8547.id20277.diff
Sun, Feb 8, 12:32 AM
F19615512: D8547.diff
Feb 4 2026, 12:38 AM
F18856988: D8547.id20278.diff
Nov 1 2025, 12:32 PM
F18807111: D8547.diff
Oct 18 2025, 11:12 PM
F18783322: D8547.id.diff
Oct 13 2025, 5:58 AM
F18670623: D8547.id20278.diff
Sep 25 2025, 12:52 AM
F18643449: D8547.id20277.diff
Sep 19 2025, 2:22 AM
Subscribers

Details

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.

Diff Detail

Repository
rARC Arcanist
Branch
formatpatch
Lint
Lint Passed
SeverityLocationCodeMessage
Auto-Fixsrc/parser/__tests__/diff/git-format-patch.gitdiff:21TXT9Trailing Whitespace at EOF
Unit
Tests Passed

Event Timeline

epriestley retitled this revision from to Support `git-format-patch` format in diff parser.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Mar 15 2014, 5:08 PM
epriestley updated this revision to Diff 20278.

Closed by commit rARC46fe94db9f8c (authored by @epriestley).