I am writing a prepare-commit-msg hook, which interactively prompts the user about some data and creates a commit message in a predefined format. In almost all cases, there is no need for the user to further edit the commit message. So is it possible to inform git not to open the editor once this hook is exited, and directly perform a commit with whatever is in the temporary msg file?
↧