From: Jonathan Hitchcock Date: Tue, 14 Jan 2014 23:20:08 +0000 (-0800) Subject: Prompt user for commit message when auto-committing X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=7ce0c8e84e8d30c6d177e8d6fc48e3f5c8ae2c74;p=arcanist.git Prompt user for commit message when auto-committing See: Reviewed by: epriestley --- diff --git a/src/workflow/ArcanistBaseWorkflow.php b/src/workflow/ArcanistBaseWorkflow.php index bcfbda86..c88c9bbc 100644 --- a/src/workflow/ArcanistBaseWorkflow.php +++ b/src/workflow/ArcanistBaseWorkflow.php @@ -908,7 +908,11 @@ abstract class ArcanistBaseWorkflow extends Phobject { $commit = head($api->getLocalCommitInformation()); $api->amendCommit($commit['message']); } else if ($api->supportsLocalCommits()) { - $api->doCommit(self::AUTO_COMMIT_TITLE); + $commit_message = phutil_console_prompt("Enter commit message:"); + if ($commit_message == '') { + $commit_message = self::AUTO_COMMIT_TITLE; + } + $api->doCommit($commit_message); } } }