Assume we have following json:
{
"path": {
"components": [],
"name": "",
"toString": ""
},
"revision": "master",
Assume we have following json:
{
"path": {
"components": [],
"name": "",
"toString": ""
},
"revision": "master",
git log -n 10\ | |
--pretty=format:'{"commit": "%H", "author": "%aN <%aE>", "date": "%ai", "message": """%B""", "notes": """%N""" },' \ | |
$@ | awk 'BEGIN { print("[") } { print($0) } END { print("]") }' | python -u -c \ | |
'import ast,json,sys; print(json.dumps(ast.literal_eval(sys.stdin.read())))' |