Giteditor
One of the really nice things about Mercurial is that it comes with a lovely script called hgeditor.sh. It allows me to view side-by-side my commit message along with a list of commits in Vim (my editor of choice). Since, in my new workplace, we are using Git, I decided that I couldn’t live without this wonderful feature.
After an hour or so of playing around – mostly trying to figure out why git wouldn’t show me a diff, I managed to get something up and running. You can find it here:
https://github.com/dharrigan/giteditor
There are two bugs that I’m aware of so far. First one when I create a new commit that only contains new changes and no diffs and secondly when it is the initial commit. To get round these, simply execute git commit -am “commit message”
Hope you enjoy it!
-=david=-




