lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Git config message template

Open CrixuAMG opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. When we work on Jira tickets all commit messages need to be prepended with the ticket number. For normal git commit usage I have created a script that creates a new branch feature/[TICKET NUMBER] and also sets the global git commit message template where the ticket number is added. Lazygit does not pick up this template, but this would be a very welcome addition.

Describe the solution you'd like When a (global) commit message template is set, it is automatically inserted in the input boxes in the commit window.

CrixuAMG avatar Sep 24 '24 10:09 CrixuAMG

There's some discussion related to this in #3108. For now, maybe using shift-C to commit with your editor could be an acceptable workaround.

stefanhaller avatar Sep 24 '24 10:09 stefanhaller

I'll switch to shift-C for now, a reasonable workaround for this :+1: Thanks for the quick response!

CrixuAMG avatar Sep 24 '24 10:09 CrixuAMG