diff options
| author | ache <ache@ache.one> | 2025-12-12 09:17:10 +0100 |
|---|---|---|
| committer | ache <ache@ache.one> | 2025-12-12 09:17:10 +0100 |
| commit | bddd28c6cee66b20d0c9206ba28c7dec244ce545 (patch) | |
| tree | 761d9718217991938c043c88aa5b9b6ac4279b4a | |
| parent | feat: Implement 'déco' function to turn off WiFi via coWifi utility (diff) | |
feat: add new utility for generating professional commit messages from git diff
| -rwxr-xr-x | functions/ia-commit-message.fish | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/functions/ia-commit-message.fish b/functions/ia-commit-message.fish new file mode 100755 index 0000000..acd3ffd --- /dev/null +++ b/functions/ia-commit-message.fish @@ -0,0 +1,7 @@ +#!/bin/fish + +# Utility that will Prompt a LLM to make a commit message from a git diff. + +function ia-commit-message + echo -e "Write a professional git commit message based on the a diff below. \nDo not preface the commit with anything, use the present tense, return the full sentence, and use the conventional commits specification (<type in lowercase>: <subject>)\n\n-----\n\n$(git diff --staged)" | hailper -p b-code | tee /tmp/prev-ia-commit-message +end |