Plugging Python into Git

I recently demoed a python script on my YouTube channel for analyzing git commits and extracting writing stats. This script is ideal for daily writing output analysis and planning.

As promised, I wanted to drop the full text I was using for the demonstration. You can find it here.

As always, this stuff is just for educational purposes and not offered with any kind of guarantee that will run properly on your own system. So, as always, run at your own risk. The script does not write any information into the file system or require any special privileges. It merely looks back at git commits made over the current day and provides some analysis.

What I particularly like:

  • The “edit ratio” feature: this nifty little tool tells you how much you wrote (added) versus what you edited (deleted). I intended for this feature to give the writer a clearer view of their habits. Is he writing more than editing, or editing more than writing?
  • The writing streak: keep a count of how many days consecutive days you’ve made commits on your writing project.
  • Commit and note messages: beyond your commit messages, you can leave extended notes to yourself about what you did in that commit.

These procedures go along nicely the theory I write about at length in my Git For Writers handbook, which I would encourage you to check out if you are high-performer writer interested in optimizing your writing output. Thanks for reading. See you next time.

Be the first to comment

Leave a Reply

Your email address will not be published.


*