From bddd28c6cee66b20d0c9206ba28c7dec244ce545 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 12 Dec 2025 09:17:10 +0100 Subject: feat: add new utility for generating professional commit messages from git diff --- functions/ia-commit-message.fish | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 functions/ia-commit-message.fish (limited to 'functions/ia-commit-message.fish') 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 (: )\n\n-----\n\n$(git diff --staged)" | hailper -p b-code | tee /tmp/prev-ia-commit-message +end -- cgit v1.3-2-g11bf