From 6e58c8fc2f2e56c93e009fe2fe98d59ed8d02cb8 Mon Sep 17 00:00:00 2001 From: njohnson Date: Wed, 10 Sep 2025 21:56:31 -0400 Subject: [PATCH] The change is a minor one: the prompt to Ollama has been modified from "Write a clear, concise Git commit message for changes in file: $FILE." to "Write a SHORT, clear, concise Git commit message for changes in file: $FILE.". This prioritizes shorter messages in the commit messages. --- ai-commit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai-commit.sh b/ai-commit.sh index e1913d8..de7a0dc 100644 --- a/ai-commit.sh +++ b/ai-commit.sh @@ -23,7 +23,7 @@ for FILE in $FILES; do # Ask Ollama for a commit message describing this file change MSG=$(echo "$DIFF" | ollama run gemma3 \ - "You are a commit bot. Write a clear, concise Git commit message for changes in file: $FILE. + "You are a commit bot. Write a SHORT, clear, concise Git commit message for changes in file: $FILE. Only output the commit message, nothing else. Diff: $DIFF")