GitStats | Statistics generator for git repositories | Analytics library
kandi X-RAY | GitStats Summary
kandi X-RAY | GitStats Summary
gitstats is a statistics generator for git repositories. It is mostly intended for developers, as a way to check some development statistics for a project. Currently it produces only HTML output with tables and graphs.
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
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
Add variables to PATH. Unzip GitStats in your favorite git working repo. Open a terminal windows+r then write cmd. Go in the repo where you unzip GitStats with cd. $ python git-stats input-file output-file.
Add variables to PATH Add python to PATH following link(working with answer from Delicia Brummitt) Add git to PATH following link
Unzip GitStats in your favorite git working repo
Open a terminal windows+r then write cmd
Go in the repo where you unzip GitStats with cd
Use command $ python git-stats input-file output-file
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