-
-
Notifications
You must be signed in to change notification settings - Fork 607
Commit trailer support #1418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you point me to how other UI tools for git handle this? This is yet again a crazy complex feature in never used in git :D |
To be honest, gitui is my first attempt in using something that is not native git, apart maybe from More rationaleThing is, that the `Signed-off-by` trailer is mission critical for a _lot_ of open source projects. Commits _have_ to be signed off in almost all open source projects I contribute to, because of the [developers certificate](https://developercertificate.org/) (some [rationale](https://drewdevault.com/2021/04/12/DCO.html)). Commits without that trailer are automatically rejected by CI in these projects, because they could lead to legal issues.Needing to type out "Signed-off-by: My Name [email protected]" all the time is just not bearable. Having a |
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
Still relevant. |
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
#1758 added support for sign-off. lets open another more specific issue for any other relevant trailer |
Is your feature request related to a problem? Please describe.
A lot of projects require trailers, for example the
Signed-off-by
trailer.Right now I do not see a way to make gitui commit with these trailers enabled.
Describe the solution you'd like
Trailers are in fact a complicated topic, because there are quite a few of them (it is a pseudo-standard) and they are structured data.
FWIW What I'd like to see would be a way to tell gitui to always add a
Signed-off-by
trailer with myname <email>
as value, but also an option to add other trailers.And here comes the problem. For example, a
Co-authored-by
trailer would be nice, but typing the value (some name and email address) is tedious. Especially if one has to do it all the time. What I could think of, though, would be this:coa
to get the fuzzy completion for theCo-authored-by:
trailer keygit log --format="%an <%ae>" | sort -u | fzf
). Then, I would type "BenB" and get fuzzy-completed theBenjamin Blümchen <[email protected]>
author and hitEnter
to confirm and gitui adds that trailerBecause data for git-trailers can not necessarily be found from the git repository itself, I would even like to see some integration for running some external script for fetching the values for the interactive trailer-value selection!
Describe alternatives you've considered
The alternative I see right now is spawning the
$EDITOR
(in my case vim) which has been configured to provide these interactive completions for git trailers and type my commit message there.The text was updated successfully, but these errors were encountered: