Skip to content
quarry Artifact [356c70987e]
Login

Artifact [356c70987e]

Artifact 356c70987e8a834430324ca312139aef235eab0088e2fbf98bff4fb49e6d412a:

Ticket change [356c70987e] - New ticket [32709698c6] Language breakdown bar for a repository. by dmestas on 2026-08-18 19:22:38.
D 2026-08-18T19:22:38.018
J cmimetype text/x-markdown
J comment Forgejo\sshows\sa\scolour\sbar\sof\sthe\slanguages\sin\sa\srepository.\sThe\sdata\ssource\sis\sthe\stip\stree,\swhich\squarry\scan\salready\slist.\n\nThe\scost\sis\snot\sthe\sclassification\s—\sextension-to-language\sis\sa\slookup\stable\s—\sbut\sthat\sbyte\scounts\sper\sfile\srequire\sreading\sthe\stree,\sand\s0001\s§2\smeans\severy\sfile\sgoes\sthrough\sa\s`zit\scat`\ssubprocess.\sFor\ssqlite\sthat\sis\s2,219\sspawns.\n\nTwo\sthings\smake\sit\saffordable:\n\n-\s`zit\sls`\salready\sreports\ssizes,\sso\sthe\sbar\scan\sbe\sbuilt\sfrom\sextension\splus\ssize\sWITHOUT\sreading\sany\sfile\scontents.\sThat\sis\sone\ssubprocess,\snot\sthousands.\sIt\smisclassifies\sfiles\swhose\sextension\slies,\swhich\sfor\sa\slanguage\sbar\sis\san\sacceptable\serror.\n-\sThe\sresult\sis\sa\spure\sfunction\sof\sa\sresolved\scheck-in,\sexactly\slike\san\sarchive,\sso\sit\scaches\sunder\sthe\ssame\srule\sand\snever\sneeds\sinvalidating.\n\nRecommend\sthe\s`zit\sls`\sroute:\sone\scall,\scacheable\sforever\sper\scheck-in,\sand\sno\snew\sdependency.\sShow\sit\sas\sthe\sstrip\sforgejo\suses\sbut\swith\sthe\slegend\sinline\srather\sthan\son\shover,\sso\sit\sis\sreadable\son\stouch.
J severity Minor
J status Open
J title Language\sbreakdown\sbar\sfor\sa\srepository
J type Feature_Request
K 32709698c64db4c07b07eef89b0c70250fa21118
U dmestas
Z 6b81aa07651d8632f569997726fb9f32