gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Is it possible to run shell command to generate the commit message?

Open AllenDang opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. Recently I found out using AI to generate a git commit message is very handy, so I think it should be great if gitui would support to run shell command and capture it's output as commit message.

Is it possible?

AllenDang avatar Apr 26 '23 14:04 AllenDang

this is effectively a dup of https://github.com/extrawurst/gitui/issues/1599

gitui does not support the correct hooks at the moment

pm100 avatar May 13 '23 07:05 pm100

but also you can use the commit-msg hook, see https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks. Look in <dir>/.git/hooks and you will see samples

pm100 avatar May 13 '23 13:05 pm100