Plot lines of code over time in Git repositories
Plot lines of code over time in Git repositories
It's a small wrapper around cloc ( https://github.com/AlDanial/cloc ), which just provides a convenient way to plot lines of code over time in a Git repository. The script runs cloc on each commit in your current branch, starting from HEAD tracing back until the first commit. For large repositories with many commits, you can tell it to only count every n:th commit with the '--step' option to speed up processing. The way it works is quite sub-optimal, since every single file is counted in each commit, even if the file didn't change since last iteration. Might be a fun project later to find some nice optimizations, maybe by counting files one by one and keeping a dict of line count by file hash, or something along those lines. Maybe someone will find this script useful, maybe not, anyways happy to hear if someone has any thoughts :)
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Git Flex – See the top contributor and % lines per author
Own MobX in 65 lines of code
Implement MFA in two lines of code
Git-cloc – Embeddable lines of code stats for your Git repo
git-crecord: TUI to interactively select lines to commit
Git Time Lapse
AStyle Git precommit hook for code beautification enforcement
Spinning Cube in 45 lines, 45 Chars Each
Flappy Bird in 128 Lines of CoffeeScript
How I Started a Business with Two Lines of Code