gitstats | git history statistics generator | Analytics library
kandi X-RAY | gitstats Summary
kandi X-RAY | gitstats Summary
git history statistics generator
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gitstats
gitstats Key Features
gitstats Examples and Code Snippets
$ bin/run --help
GitStats 0.1.0
Usage: GitStats [options]
For Linux and Mac, an executable program called git must be on the PATH;
for Windows, and executable called git.exe must be on the Path.
Ignores files committed with these filetypes: exe, gi
repostat --config-file
{
"max_domains": 10,
"max_authors": 7,
"max_plot_authors_count": 10,
"max_authors_of_months": 6,
"authors_top": 5,
"colormap": "classic",
"max_recent_tags": -1,
"orphaned_extension_count": 2,
$ gitstats -p. -sxSM -w70 -e me@example.com -f ~/projects/*
...x..........x.S................................................S...x
..x.x..x.........................................................xx.x.
..x...x.......x..........x..x...................
Community Discussions
Trending Discussions on gitstats
QUESTION
How many lines of code were added and deleted per filetype in a git repository? Preferably, being able to request these statistics for the past X
commits. So say I would request this for the past 100
commits, my expected outcome would be something like this:
ANSWER
Answered 2020-May-10 at 15:44There are two ways to compute the data you want. One of them is to compute the differences for the commit ranges as a whole and the other is to compute each commit individually and sum the values. The latter may be larger than the former if a file is touched multiple times. Since you didn't specify, I'll show you both.
To compute the former, which is simpler, you can use a command like the following:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gitstats
You can use gitstats like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page