Skip to content

Add support for prepare-commit-msg hooks #470

@siwica

Description

@siwica

I want to modify the default commit message a user sees when opening the commit message editor. Specifically I want to replace some placeholder in the commit-template with a string extracted from the current branch name and display the resulting text to the user without modifying the original commit template file.

Can this be done using overcommit and if so how and using which hook? pre_commit or prepare_commit_msg?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions