]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Strip tips out of commit messages from `arc backout`
authorepriestley <git@epriestley.com>
Sat, 2 Apr 2016 13:28:11 +0000 (06:28 -0700)
committerepriestley <git@epriestley.com>
Sat, 2 Apr 2016 14:26:02 +0000 (07:26 -0700)
Summary:
Fixes T10707. Currently, `arc backout` creates a commit message which includes questionably-helpful "tips" in the message itself.

Strip these out.

Test Plan:
Used `arc backout` to revert any commit, then `git show` to see the generated message.

  - Before patch: included tips.
  - After patch: no tips.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10707

Differential Revision: https://secure.phabricator.com/D15573

src/workflow/ArcanistBackoutWorkflow.php

index a9564dbbb2fc39fa8dfe5b022a8e248b5df58740..ba5544050a2c7f9863575f2cc359876d3ee5b828 100644 (file)
@@ -123,6 +123,9 @@ EOTEXT
     $template = $this->newInteractiveEditor($template)
       ->setName('new-commit')
       ->editInteractively();
+
+    $template = ArcanistCommentRemover::removeComments($template);
+
     return $template;
   }