Skip to content

Instantly share code, notes, and snippets.

@brucevanhorn2
Created November 11, 2024 17:15
Show Gist options
  • Save brucevanhorn2/0a9dd8ffb8951b027d90024561d0e25c to your computer and use it in GitHub Desktop.
Save brucevanhorn2/0a9dd8ffb8951b027d90024561d0e25c to your computer and use it in GitHub Desktop.
Code Data Collection from Git

Code Data Collection

This is a command I use to gather data from git logs for processing and visualization.

git log --pretty=format:'{%n "commit": "%H",%n "abbreviated_commit": "%h",%n "tree": "%T",%n "abbreviated_tree": "%t",%n "parent": "%P",%n "abbreviated_parent": "%p",%n "refs": "%D",%n "encoding": "%e",%n "subject": "%s",%n "sanitized_subject_line": "%f",%n "body": "%b",%n "commit_notes": "%N",%n "verification_flag": "%G?",%n "signer": "%GS",%n "signer_key": "%GK",%n "author": {%n "name": "%aN",%n "email": "%aE",%n "date": "%aD"%n },%n "commiter": {%n "name": "%cN",%n "email": "%cE",%n "date": "%cD"%n }%n},' --since="1 days ago"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment