Skip to content

Commit e263f18

Browse files
author
Nick Sullivan
committed
📝 Add diff context explanation to commit message prompt
Improves AI understanding of git diff format by including the DIFF_CONTEXT_EXPLANATION constant. This helps generate more accurate commit messages by clarifying how to interpret diff symbols.
1 parent fb34628 commit e263f18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

aicodebot/prompts.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,10 @@ def generate_files_context(files):
350350
• For simple changes, omit the body entirely if summary is sufficient
351351
• Never repeat information that's obvious from reading the diff
352352
353+
"""
354+
+ DIFF_CONTEXT_EXPLANATION
355+
+ """
356+
353357
SAMPLE EXCELLENCE:
354358
🔐 Implement user authentication with JWT tokens
355359

0 commit comments

Comments
 (0)