From 813329c0a5c3c121ee3865e33a481a9868bca9da Mon Sep 17 00:00:00 2001 From: vrana Date: Thu, 29 Mar 2012 12:23:21 -0700 Subject: [PATCH] Don't trim indentation in `arc amend` Summary: When there is a single line Test Plan (or anything else) then `arc amend` puts it on the same line as label. It is a problem with indented line (as in this diff) because next run of `arc diff` will trim the leading spaces. Test Plan: arc amend Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D2054 --- .../ConduitAPI_differential_getcommitmessage_Method.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/conduit/method/differential/getcommitmessage/ConduitAPI_differential_getcommitmessage_Method.php b/src/applications/conduit/method/differential/getcommitmessage/ConduitAPI_differential_getcommitmessage_Method.php index 00716cdd06..0004884d02 100644 --- a/src/applications/conduit/method/differential/getcommitmessage/ConduitAPI_differential_getcommitmessage_Method.php +++ b/src/applications/conduit/method/differential/getcommitmessage/ConduitAPI_differential_getcommitmessage_Method.php @@ -129,7 +129,7 @@ final class ConduitAPI_differential_getcommitmessage_Method array("\r\n", "\r"), array("\n", "\n"), $value); - if (strpos($value, "\n") !== false || substr($value, 0, 2) === " ") { + if (strpos($value, "\n") !== false || substr($value, 0, 2) === ' ') { $commit_message[] = "{$label}:\n{$value}"; } else { $commit_message[] = "{$label}: {$value}";