dreamyguy / gitlogg

💾 🧮 🤯 Parse the 'git log' of multiple repos to 'JSON'
MIT License
130 stars 27 forks source link

Git notes #5

Closed Mihailoff closed 8 years ago

Mihailoff commented 8 years ago

Is there a way to include https://git-scm.com/docs/git-notes into resulting json? If you run git log --show-notes=name-of-your-notes you'll get some extra information.

commit 2e711912549af4efb9d1a8d13f6e325fefbc8a0e
Author: George Mihailov <george@example.com>
Date:   Wed Jun 8 11:33:07 2016 -0700

    Minor improvements

Notes (name-of-your-notes):
    Here are some notes about the commit
dreamyguy commented 8 years ago

I'll look into it. There's the %N pretty format placeholder for commit notes, which is already being used in the script. It should be relatively easy to include it, once it is sanitised.

dreamyguy commented 8 years ago

@Mihailoff you're in luck!

It so happens that commit notes is already available, it's just that it's commented out on this line. There are other things commented out as well - a total of 23, as you can see further down on the gitlogg-parse-json.js file. 💰

Uncomment the ones you'd like to output and you're covered.