git-xargs icon indicating copy to clipboard operation
git-xargs copied to clipboard

Can `git-xargs` make signed git commits?

Open ca-scribner opened this issue 1 year ago • 2 comments

Describe the solution you'd like It is often useful to submit signed commits to repos, it would be good if git-xargs could enable this (likely by a feature flag)

Describe alternatives you've considered There might be a way to change my system defaults to always do this? It would depend on whether you're using the command line git tool or golang packages for git interaction, and I haven't dug into the code

Additional context Great tool. Thanks for making and maintaining it!

ca-scribner avatar Aug 15 '22 19:08 ca-scribner

I just also ran into this and would love to see an option to sign commits.

I checked the code, and internally it uses go-git with these options set:

https://github.com/gruntwork-io/git-xargs/blob/d7c707426b7b5f301639e48b32c1dce46ee52c7f/repository/repo-operations.go#L330

For signing, this would be required. https://github.com/go-git/go-git/blob/32c4f532abd57797322e97d95dfa02821980e309/options.go#L470

grawinkel avatar Aug 29 '22 13:08 grawinkel

Can this get some love? I like this tool a lot but our repos require commits be signed :(

jduan-highnote avatar Jan 23 '23 20:01 jduan-highnote