Skip to content

Instantly share code, notes, and snippets.

View sanidhya-singh's full-sized avatar
🎯
Focusing

Sanidhya Pratap Singh sanidhya-singh

🎯
Focusing
View GitHub Profile
@sanidhya-singh
sanidhya-singh / example_output.json
Created January 9, 2020 04:56 — forked from simonw/example_output.json
Python function for retrieving all git commits (from "git log" in the current directory) as a useful data structure
[
{
"date": "Mon Jan 23 13:03:00 2017 -0800",
"message": "Recommended by Django https://docs.djangoproject.com/en/1.10/ref/databases/#setting-sql-mode",
"title": "SET sql_mode='STRICT_TRANS_TABLES';",
"hash": "a395f401c9a6d3e8602b80ecc729d736da871f46",
"author": "Simon Willison <simonw@example.com>"
},
{
"date": "Mon Jan 23 11:37:38 2017 -0800",