dreamyguy / gitlogg

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

Parsing Issue #25

Closed twhited-hpg closed 1 year ago

twhited-hpg commented 1 year ago

When parsing some repos, the formatting went bonkers. I've included a gist here that I've removed a lot of the normal lines to show the difference:

Could you help me figure out how to fix the parsing?

Thank you!

twhited-hpg commented 1 year ago

Some more digging, it looks like its due to commits that dont have file change deletion statistics:

https://gist.github.com/twhited/a3e7ef97e5054509f94857d2cd850577

twhited-hpg commented 1 year ago

sed 'N;s/stats\t\ncommits/\n 0 file changed, 0 insertion(+), 0 deletion(-)\n\n/g' |

Adding this after the git log line fixes it for me. Would you like a PR for this change?