]> khamidou — GitHub mirrors - arcanist.git/commit
Fix a bad interaction between "arc diff --reviewers" and "the first line of a message... master
authorepriestley <git@epriestley.com>
Thu, 5 Jan 2017 21:55:34 +0000 (13:55 -0800)
committerepriestley <git@epriestley.com>
Thu, 5 Jan 2017 22:35:39 +0000 (14:35 -0800)
commitade25facfdf22aed1c1e20fed3e58e60c0be3c2b
tree9389c0d83c5a13701e949ecb7bc35007782e90eb
parentc243cbbd9fc701ca9555672ea5c1666ea154898f
Fix a bad interaction between "arc diff --reviewers" and "the first line of a message is always a title"

Summary:
Fixes T12069. We implement "arc diff --reviewers" (and "--cc") by parsing a faux message with "Reviewers: ...".

After D17122, the first line of the message is always interpreted as a title, so the text ends up in the message body.

Instead, use a placeholder title so these fields are never initial fields.

Test Plan: Ran `arc diff --reviewers dog`, got only one "Reviewers" field.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12069

Differential Revision: https://secure.phabricator.com/D17147
src/workflow/ArcanistDiffWorkflow.php