Skip to content

Instantly share code, notes, and snippets.

View BlockChainCaffe's full-sized avatar
🎯
Focusing

BlockChain Caffè BlockChainCaffe

🎯
Focusing
View GitHub Profile
@BlockChainCaffe
BlockChainCaffe / git-log2json.sh
Created October 20, 2021 13:48 — forked from dmegorov/git-log2json.sh
Convert Git logs to JSON
#!/usr/bin/env bash
# Usage:
# git log2json # for the basic commit info
# git log2json --name-only # for the same plus changed file list
#
# Based on https://gist.github.com/textarcana/1306223
git log \
--pretty=format:'%n{%n "commit": "%H",%n "author": "%an <%ae>",%n "date": "%ad",%n "message": "%f":FILES:' \

Keybase proof

I hereby claim:

  • I am blockchaincaffe on github.
  • I am blockchaincaffe (https://keybase.io/blockchaincaffe) on keybase.
  • I have a public key ASBJkmn5ge1_jDrwdu6xh6WlHedqoMpRbDiqQK4-T9yVNQo

To claim this, I am signing this object: