From 7ce0c8e84e8d30c6d177e8d6fc48e3f5c8ae2c74 Mon Sep 17 00:00:00 2001 From: Jonathan Hitchcock Date: Tue, 14 Jan 2014 15:20:08 -0800 Subject: [PATCH] Prompt user for commit message when auto-committing See: Reviewed by: epriestley --- src/workflow/ArcanistBaseWorkflow.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } } }