Git log parser?
See original GitHub issueWould be nice to have a git log in json format, unfortunately my python skills are too bad at the moment.
git log a..b --format=%h|%s|%an|%cs
And then regex it like this:
/(?<sha>.*?)\|(?<msg>.*?)\|(?<author>.*?)\|(?<date>.*)/
The groups will contain the json format
Issue Analytics
- State:
- Created a year ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
git-log-parser - npm
Start using git-log-parser in your project by running `npm i ... There are 75 other projects in the npm registry using git-log-parser.
Read more >Let's parse git log - Nushell
Parsing Git Log. # Let's parse git log. This git log command is interesting but you can't do a lot with it like...
Read more >gaborantal/git-log-parser: Python script to parse 'git log' - GitHub
GitLogParser. Python script to parse 'git log'. Usage. Script is intented to be used via commandline. Depending on the commandine arguments it can...
Read more >Git-log-parser NPM - npm.io
git -log-parser Build Status. Run git log and return a stream of commit objects. Setup. $ npm install git-log-parser. API. log.parse(config, options) ...
Read more >git-log-parser | Yarn - Package Manager
Run git log and return a stream of commit objects. Setup. $ npm install git-log-parser. API. log.parse(config, options) -> Stream(commits).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @kellyjonbrazil thanks! I totally missed this message! I’ll go test it out and report back ❤️ thanks so far!
Hi Kelly! Yeah the escaping was the reason why I wanted to offload it to a tool like jc. That’s why I separated it with pipes and then made proper JSON out of it via the regex groups, in order to limit collisions. Ofcourse if you use a pipe in your body/subject you’re still screwed 😄