dotfiles

<-- duh.
git clone https://hhvn.uk/dotfiles
git clone git://hhvn.uk/dotfiles
Log | Files | Refs | Submodules | LICENSE

effort (341B)


      1 #!/bin/sh
      2 
      3 # idea:
      4 # https://gist.github.com/Xeoncross/4020489
      5 
      6 git log --shortstat --author "$1" | awk '
      7 	/file[s]* changed.*insert/ {
      8 		files+=$1; inserted+=$4; deleted+=$6
      9 		next
     10 	}
     11 
     12 	/file[s]* changed/ {
     13 		files+=$1; deleted+=$4
     14 	}
     15 
     16 	END {
     17 		printf("Files changed:\t%s\nInsertions:\t%s\nDeletions:\t%s\n", files, inserted, deleted);
     18 	}'