Skip to content

Commit 0379c44

Browse files
authored
Merged to main
2 parents a7f2092 + 531a9ee commit 0379c44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-commit-push-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ diff=$(git diff --cached)
2121
MODEL="mistral"
2222

2323
# Prepare the prompt
24-
PROMPT=$(printf "You are an expert software engineer.\n\nYour job is to generate a concise, descriptive commit message from the following git diff.\nThe commit message MUST be 72 characters or less - this is a strict requirement.\nOnly return the commit message itself without quotes, explanations or additional text.\n\nGit diff:\n%s" "$diff")
24+
PROMPT=$(printf "You are an expert software engineer.\n\nYour job is to generate a concise, descriptive commit message from the following git diff.\nThe commit message MUST be no more than 72 characters in length - this is a strict requirement.\nOnly return the commit message itself without quotes, explanations or additional text.\nDon't include phrases like 'It appears you have', 'I see that you', or 'You seem to have', 'It looks like' or similar in your response.\nThe response should be factual and focused on the changes made.\n\nGit diff:\n%s" "$diff")
2525

2626
# Run the model and capture output
2727
COMMIT_MSG=$(echo "$PROMPT" | ollama run "$MODEL")

0 commit comments

Comments
 (0)