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:
- similar "git: show changed files between 2 commits",
- but adding date options mentioned in "list new files added (by anyone) between 2 dates"
- and "
--author" filter described in "how can view git log of 1 user's commits?"
i tested on git repo git itself:
report1usegit diffc:\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) report2usegit 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
Post a Comment