title: Run script before commit and include the update in this commit?
body: <p>I wrote a script that generates <code>Readme.md</code> file (for GitHub) by scanning the source code. Everytime before I make a new commit, I run this script manually to update <code>Readme.md</code>. It sure would be better if this job being done automatically.</p>
  
  <p>Currently I'm using <code>pre-commit</code> git hook, which works only partly. The <code>Readme.md</code> file gets updated, however the update is not part of this commit. I have to include it in the next commit.</p>
  
  <p>Is there a way to run this script and make the update part of this commit?</p>