How can I get the total lines committed today in git? -


i found general statistics on git time repo has existed i'm interested in doing like:

git today  

and things # of commits, # of lines , etc. broken down author.

i interested in # of lines current user.. can combine results of other things on own

if want see graphical representation of git repository's activity, use gitstats utility: http://gitstats.sourceforge.net/

all following commands assume use of, e.g., bash. running following command can first commit has same date today.

> first_commit=`git log --pretty=format:"%h" --since "$(date +%y-%m%-d):00:00" 

and following command process git repository statistics:

> gitstats -c commit_begin=<commit_id> . target/gitstats 

and combining these can simple command can set alias, if wish:

> first_commit=`git log --pretty=format:"%h" --since "$(date +%y-%m%-d):00:00" | tail -n1`; gitstats -c commit_begin=$first_commit . target/gitstats 

then open ./target/gitstats/index.html preferred browser


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -