title: How to make IntelliJ IDEA respect pre-commit-msg hook
body: <p>I would like to prefill the commit message depending on the branch name I am currently on.
  I have this working with a <code>pre-commit-msg</code> hook from the command line but when commiting from IDEA there is no effect. The commit msg is prepopulated by the last commit msg (I think?).
  Is there a way to get this working?</p>
  
  <p>Edit: I just found out that the hook is working when I reword a commit message in IDEA. But that's not what I want.</p>