CLI git log statistics

I was faced with the task of generating statistics on the history of the Git project, and I need to create some specific numbers and representations for various indicators: such as fixations on the author, fixations for the time / date histograms, something like that.

The problem is that I need all this data generated in a format that can be processed using a script or similar - the output should be textual, and if I can get numbers in a Python (or similar) script, all the better.

My question is this: are there any existing frameworks or projects that will provide such an interface? I saw GitStats , and it does a lot of what I want, but then it uploads the results to the HTML structure, and not just returning text or program views to me. Are there (for example) Python bindings for the Git log parser, or even a Git statistics generator that returns a large text data dump?

I understand that this is a very specific need, and I am ready to make a serious encoding to get the exact format I want, but I would like to think that there is a starting point somewhere. Ideas?

+4
source share
1 answer

How about using XML logs instead, and then you can easily parse xml in python and generate statistics.

see this answer on how to get xml log from git

+1
source

Source: https://habr.com/ru/post/1335196/


All Articles