Created
July 27, 2017 03:37
-
-
Save IanLee1521/fead3d955930a36ac9d53d6e1fbd4722 to your computer and use it in GitHub Desktop.
Get pshtt commit history stats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
git clone git@github.com:dhs-ncats/pshtt.git && cd pshtt | |
git checkout 00ff246f40acbea185d478d838c7fcd6652b9aa8 | |
git log --pretty=oneline | wc -l | |
# 292 | |
git log --numstat --pretty="%H"| awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}' | |
# +6944, -5163 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment