git - How to generate reports about user contributions? -


i know how can create reports.

the first report need files changed specific user beginning end datetime.

the second one, similar first, need messages commits , files changed specific user beginning end datetime.

how can perform this?

example:

report 1

user

files changed 2013-07-03 12:34:45 2013-09-16 15:00:37

a.php b.txt c.ini d.rb ... , other ones 

report 2

user

commits did 2013-07-03 12:34:45 2013-09-16 15:00:37 , files changed

message commit 1     e.php     j.txt  message commit 2     ka.rb     asdf.jsp  ... ones 

this is:

i tested on git repo git itself:

  • report1 use git diff

    c:\users\vonc\prog\git\git> git diff --author="junio c hamano" --name-status --pretty=oneline --abbrev-commit master@{"29 jun 2013"}..master@{"14 aug 2013"} 

that not satisfactory, uses rev-parse syntax, goes 90 days.

a more robust way ask git rev-list right sha1 git diff use:
(but works in unix-like bash, not in dos shell)

    vonc@voncvb /c/users/vonc/prog/git/git (master)     $ git diff --author="junio c hamano" --name-status --pretty=oneline --abbrev-commit $(git rev-list -n 1 --before="10 sep 2012" master) $(git rev-list -n 1 --before="12 nov 2012" master) 
  • report2 use git log:

    c:\users\vonc\prog\git\git> git log --author="junio c hamano" --name-status --pretty=oneline --abbrev-commit --since "10 sep 2012" --until "12 nov 2012" 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -