Skip to content

Instantly share code, notes, and snippets.

@VeeeneX
Last active August 18, 2016 10:59
Show Gist options
  • Save VeeeneX/da49682d8b165d1cd680fbc3991d13fc to your computer and use it in GitHub Desktop.
Save VeeeneX/da49682d8b165d1cd680fbc3991d13fc to your computer and use it in GitHub Desktop.
{
"commit": "%H",
"abbreviated_commit": "%h",
"tree": "%T",
"abbreviated_tree": "%t",
"parent": "%P",
"abbreviated_parent": "%p",
"refs": "%D",
"encoding": "%e",
"subject": "%s",
"sanitized_subject_line": "%f",
"body": "%b",
"commit_notes": "%N",
"verification_flag": "%G?",
"signer": "%GS",
"signer_key": "%GK",
"author": {
"name": "%aN",
"email": "%aE",
"date": "%aD"
},
"commiter": {
"name": "%cN",
"email": "%cE",
"date": "%cD"
}
}
class Commit(object):
def __init__(self, commit):
self.commit = commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment