Skip to content
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

De-duplicate lines started with 'Signed-off-by: ' #6

Open
Flowdalic opened this issue Jun 29, 2022 · 1 comment
Open

De-duplicate lines started with 'Signed-off-by: ' #6

Flowdalic opened this issue Jun 29, 2022 · 1 comment

Comments

@Flowdalic
Copy link

Flowdalic commented Jun 29, 2022

I often pram a PR where I I already signed off, so that the 'Closes' git trailer is added, but this causes duplicate Signed-off-by trailers, e.g.,

Closes: https://bugs.gentoo.org/853928
Signed-off-by: Florian Schmaus <[email protected]>
Closes: https://github.com/gentoo/gentoo/pull/26069
Signed-off-by: Florian Schmaus <[email protected]>

I've looked a pram, but found no easy way to prevent this, as I found no way to have git tell me which value it will use for the Signed-off-by trailer (but I believe there must be a way).

@thesamesam
Copy link

It looks like we can do this via git-interpret-trailers (see also: https://stackoverflow.com/questions/58525836/git-magic-keywords-in-commit-messages-signed-off-by-co-authored-by-fixes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants