开发者

visualizing progress on git repositories [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 3 years ago.

Improve this qu开发者_如何学Pythonestion

Is there a tool to visualize how much progress have been made on the git project over time? Something that can graph productivity over days/weeks/months in a chart is what I'm thinking of.

If not, is it possible to extract git history data into some kind of format (xml etc) to process (and later visualize) manually?


I know that github and other hosts show this already. But it wouldn't be hard to automate something like that:

git log --no-merges --author="Jane" --format="%ai" --all

This will show the dates of all the commits of Jane. You can stream that to a file with > export.csv at the end. You then open this with excel where you can manipulate the data. Or you can export each author and their commits:

git log --no-merges --all --format=" %an %ai"

further, you could dig out more info about each commit (say the number of lines changed each time, or paths affected, etc..)

for sha1 in $(git log --no-merges --format="%H" master@{"1 month ago"}..master); do
    git log -1 --format=" --- %an %ai ---" $sha1 >> tempfile
    git log --stat -1 $sha1 >> tempfile
    # some other processing
done

This time I've limited the output to where master was last month.


Have a look at gitstats, which uses GNU Plot to visualize a repo's history of activity:

http://gitstats.sourceforge.net


You can use git shortlog --since="1 month ago". Or you can use the --format option to git log to output information in a format suitable for how you want to plot things.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜