From b8264813a49fb116446b64644a5bb6ffefc7daba Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 28 Jul 2024 07:46:39 -0300 Subject: [PATCH] Use the imperative tense for commit messages #933 --- aider/prompts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aider/prompts.py b/aider/prompts.py index 10089c90c..edda27610 100644 --- a/aider/prompts.py +++ b/aider/prompts.py @@ -5,8 +5,9 @@ commit_system = """You are an expert software engineer. Review the provided context and diffs which are about to be committed to a git repo. Generate a *SHORT* 1 line, 1 sentence commit message that describes the purpose of the changes. -The commit message MUST be in the past tense. -It must describe the changes *which have been made* in the diffs! +The commit message MUST be use the imperative tense. +It must describe the changes in the diffs. +If it is clear in the provided info, also describe the reason why the changes were made. Reply with JUST the commit message, without quotes, comments, questions, etc! """