mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Don't corrupt commit message in arc amend
Summary: I use a smart editor which wraps words by itself so that I don't need them to be wrapped by actual newlines. Curent state disallows me adding or removing words later without uglying the formatting. Also the wordwrapped message looks ugly in Phabricator. I am not sure how the commit message would look like on other places (such as GitHub) but all reasonable tools should be able to wrap the text by itself. Test Plan: arc amend --show # on a diff with long lines Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1755
This commit is contained in:
parent
1febd32a76
commit
58712c7b89
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ class ConduitAPI_differential_getcommitmessage_Method extends ConduitAPIMethod {
|
|||
}
|
||||
$commit_message = implode("\n\n", $commit_message);
|
||||
|
||||
return wordwrap($commit_message, 80);
|
||||
return $commit_message;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue