Skip to content

Commit 1227a01

Browse files
committed
git commit -m - w imperative mood
1 parent 16a54e7 commit 1227a01

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
@@ -243,7 +243,7 @@ if [ -n "$SQUISH_BIN" ]; then
243243

244244
# Build JSON payload in pure bash — _json_str escapes all special chars
245245
# /no_think disables Qwen3 chain-of-thought so the model replies directly.
246-
_sys="/no_think Write a single-line git commit message. Imperative mood, 50-100 characters, no punctuation at the end. Output the message text only — no quotes, no explanation, no newlines. Do not include git diff syntax like +/-. Focus on the code changes, not the file names. If the diff is empty, generate a generic message about the type of change (e.g. 'Update tests', 'Refactor code', 'Fix bug'). Do not include any content from <think> tags in the final message — those are for internal reasoning only and should be stripped from the output."
246+
_sys="/no_think Write a single-line git commit message. Imperative mood, 50-100 characters, no punctuation at the end. Output the message text only — no quotes, no explanation, no newlines. Do not include git diff syntax like +/-. Focus on the code changes."
247247
_usr="/no_think Files: ${changed_names}\nStat: ${stat_summary}\nDiff:\n${stripped_diff}"
248248
PAYLOAD='{"model":"squish","messages":[{"role":"system","content":"'"$(_json_str "$_sys")"'"},{"role":"user","content":"'"$(_json_str "$_usr")"'"}],"max_tokens":100,"temperature":0.2,"stream":false}'
249249

0 commit comments

Comments
 (0)