-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
This is hardly mission critical (lazygit is already fantastic at slicing and dicing git history), but it would be a nice convenience feature for adding the GitLab and GitHub Co-authored-by metadata.
The main thought here is to make it easy to insert these metadata. Perhaps by adding a shortcut to the commit message dialog that spawns a little author search dialog that upon enter will insert the Co-authored-by: author-name <[email protected]> metadata in the commit message body.
Another nicety here migh be that lazygit parses the commit message body for the Co-authored-by: author-name <[email protected]> and perhaps indicates commits with these metadata with a * or something in the commit view.
You can always add these meta data easily enough, but remembering the metadata tag is annoying, and it would be much more convient to be able to quicly query other authors in the git history to populate the co-author. It's easy enough to write a separate script that will fixup the commit with the right co-authors, but it might be nice to have it natively in lazygit. We could also use a custom command in lazygit, but that requires that the author data (name and email) to be typed by hand which would introduce typos.