Pl

Plot lines of code over time in Git repositories

Hacker News

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 card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: single, code · Missing: mac, agents, macos
74%74% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
45%45% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersIH features products with proven revenue · Missing: supports, reddit linkedin, podcasting
42%42% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
39%39% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
24%24% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Gi
Git Flex – See the top contributor and % lines per author51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Git Flex – See the top contributor and % lines per author

Hacker News3
Ow
Own MobX in 65 lines of code51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Own MobX in 65 lines of code

Hacker News12
Im
Implement MFA in two lines of code58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Implement MFA in two lines of code

Hacker News8
Gi
Git-cloc – Embeddable lines of code stats for your Git repo56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Git-cloc – Embeddable lines of code stats for your Git repo

Hacker News2
gi
git-crecord: TUI to interactively select lines to commit68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

git-crecord: TUI to interactively select lines to commit

Hacker News21
Gi
Git Time Lapse56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Git Time Lapse

Hacker News4
AS
AStyle Git precommit hook for code beautification enforcement67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AStyle Git precommit hook for code beautification enforcement

Hacker News3
Sp
Spinning Cube in 45 lines, 45 Chars Each52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Spinning Cube in 45 lines, 45 Chars Each

Hacker News1
Fl
Flappy Bird in 128 Lines of CoffeeScript43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Flappy Bird in 128 Lines of CoffeeScript

Hacker News6
Ho
How I Started a Business with Two Lines of Code50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

How I Started a Business with Two Lines of Code

Hacker News3