Skip to content

support git commit options within gitmoji -c #1040

@AndreasAugustin

Description

@AndreasAugustin

Description of the problem

$ gitmoji -v
8.0.0

Currently it is not possible to use git commit flags and options when calling gitmoji -c.

Because of that some super useful options like git commit -S to sign the commits is not possible to be used within that command.

Solution

add the needed flags as optional parameters to the already supported flags.

Alternatives

Currently it is possible to add some of the flags to the git global settings. E.g. with the example for -S

git config --global commit.gpgsign true

Furthermore (fast reading the code) I think it should be possible to have this functionality using the --hook flag.
gitmoji --hook -S -m .... Need to verify.

This is possible but somehow not nice

Additional context

For me in special the -S option is needed and useful. In many projects I want and need to sign commits and should be considered as best practice. For more information please consider https://dev.to/andreasaugustin/git-how-and-why-to-sign-commits-35dn

There are many more useful options which are currently suppressed. Happy to discuss.

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions