Skip to content

Instantly share code, notes, and snippets.

@drobinson
Last active August 29, 2015 14:22
Show Gist options
  • Save drobinson/d23fa180674b4eb3c676 to your computer and use it in GitHub Desktop.
Save drobinson/d23fa180674b4eb3c676 to your computer and use it in GitHub Desktop.
Condensed Line Change Report Between Branches (good for looking at cleanup branch stats)
git diff --shortstat <master_branch> <cleanup_branch>
# 93 files changed, 838 insertions(+), 7592 deletions(-)
# Combine this with rev-list to limit reporting to a time period
git diff --shortstat $(git rev-list -n1 --before="1 day ago" <cleanup_branch>)
# 7 files changed, 7 insertions(+), 368 deletions(-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment