Git commit lines graph
Project description
Git Commit Lines Graph
A small python script to visualize the number of lines in a project, as a function of time.
Install: python3 -m pip install git-lines-graph
Usage: git-lines-graph [-b BRANCH] GIT-DIR
Call with a git project directory. You can also specify a branch to scan; other wise the branch currently checked in is used.
Dependencies:
click
for argument parsing.GitPython
to interact withgit
.matplotlib
for plotting.pandas
for data manipulation.
How Does It Work
The code goes over all commits messages and looks for the number of lines added/removed and keeps an updated count. Caveat: the lines reported in git commit messages are only a proxy for the true number of lines of code. It could be way off in projects in which there are data artifacts such as big data files. One solution is to loop over all commits, checkout the commit and do a wc
over all files that are considered to be code files. But that's slower and could be dangerous in dirty projects.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file git_lines_graph-2.0.0.tar.gz
.
File metadata
- Download URL: git_lines_graph-2.0.0.tar.gz
- Upload date:
- Size: 89.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97066ad66094086af839c5f91f44c6edc8e2bc620eaa8c3059f78e6c418beb3c |
|
MD5 | 0dc371df7e256d6fc4d1bec6eba4fc4a |
|
BLAKE2b-256 | 9e8e49e6dc967f92484d84aa97099ee17040113c5a3196065d839b527b3a6123 |
File details
Details for the file git_lines_graph-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: git_lines_graph-2.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49a251b8709d5c23e067ce06bce5a32ee8b7446a56b89adf37c6946a287aab1f |
|
MD5 | 1e0e0b555fe45a40a4be54e38bf8278f |
|
BLAKE2b-256 | 5c822e22654a8b4930f47e26c423b68828ccf0a73460f9df9e78fb3f88606e16 |