The prepare-commit-msg Git hook is invoked after Git generates the default commit message but before the user is presented with an editor (if one is used). This makes it useful for modifying or augmenting the commit message before it’s finalized or shown to the user.
For our use case, we want to support this hook by executing the commands defined under the corresponding step in railcar.json, capturing their output, and writing that output back into the commit message file.
The prepare-commit-msg Git hook is invoked after Git generates the default commit message but before the user is presented with an editor (if one is used). This makes it useful for modifying or augmenting the commit message before it’s finalized or shown to the user.
For our use case, we want to support this hook by executing the commands defined under the corresponding step in railcar.json, capturing their output, and writing that output back into the commit message file.