Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Plot project lines of code as a function of time.

License

NotificationsYou must be signed in to change notification settings

danielfleischer/git-commits-lines-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPIPython VersionLicense: GPL v3+Downloads

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# ORpython3 -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

  • 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 awc over all files that are considered to be code files. But that's slower and could be dangerous in dirty projects.

About

Plot project lines of code as a function of time.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp