question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Would 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:closed
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
emileboschcommented, Apr 25, 2022

Hi @kellyjonbrazil thanks! I totally missed this message! I’ll go test it out and report back ❤️ thanks so far!

1reaction
emileboschcommented, Apr 7, 2022

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 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found