I need to get the output of a git log command formatted as JSON. I like the approach suggested in Git log output to XML, JSON, or YAML? to use a custom git log pretty format
I've added --name-only parameter support to the original Noah Sussman's script so you can get the list of changed files using this command:
--name-only
git log2json --name-only
The amended script is here.