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
uv tool install git-lines-graph
# OR
python3 -m pip install git-lines-graph
Usage
Run: git-lines-graph [-b BRANCH] [GIT-DIR]
Call with an optional git project directory. You can also specify a branch to scan; other wise the branch currently checked in is used.
Dependencies
GitPythonto interact withgit.matplotlibfor plotting.pandasfor 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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git_lines_graph-2.2.0.tar.gz.
File metadata
- Download URL: git_lines_graph-2.2.0.tar.gz
- Upload date:
- Size: 105.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f7cceac9781bb125bf23bbb9d80ac4d64e7e75de62b61f631c4c12b68a6d3bb
|
|
| MD5 |
357dcd97b5a98962241008a66e547e55
|
|
| BLAKE2b-256 |
3497ff6055fd300eb83bb6f20021e8203067a8e567d17265fb065e15c4888f3f
|
File details
Details for the file git_lines_graph-2.2.0-py3-none-any.whl.
File metadata
- Download URL: git_lines_graph-2.2.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00b10d0de7ee98c90edd46a04ee0a617b86942a90a9f57d088a5b8ba7c7af6ab
|
|
| MD5 |
192d698249308d321ae64e1a407c4a66
|
|
| BLAKE2b-256 |
d8e882c7dbb4e4d1fba41208614ba58d762ad96baf352c004f9556cc84523e9f
|