summaryrefslogtreecommitdiff
path: root/functions/ia-commit-message.fish
diff options
context:
space:
mode:
Diffstat (limited to 'functions/ia-commit-message.fish')
-rwxr-xr-xfunctions/ia-commit-message.fish7
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