TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Git quick statistics

114 pointsby arzzenover 6 years ago

7 comments

qzncover 6 years ago
The more interesting question with git statistics is what they are actually useful for. Tools like this seem to be guided by which data is available and easy to extract. What is commits per hour useful for?<p>Sometimes these metrics are useful. For example, the top committers are interesting, because it instantly gives you a good hint who is very experienced with the codebase and its structure.<p>Two metrics I find useful to know where to refactor: Files with the most commits and with the most authors.
评论 #18702543 未加载
评论 #18701555 未加载
评论 #18701527 未加载
JNRoweover 6 years ago
Another alternative that I like is pepper¹. It doesn&#x27;t have the interactive menu interface that the OP script has, but it can produce nice results² and does support other VCSs.<p>As an added benefit you can just use pepper to generate the data and shift to <i>your</i> favourite tool for display.<p>1. <a href="https:&#x2F;&#x2F;jgehring.github.io&#x2F;pepper&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jgehring.github.io&#x2F;pepper&#x2F;</a> 2. <a href="https:&#x2F;&#x2F;jgehring.github.io&#x2F;pepper&#x2F;gallery&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jgehring.github.io&#x2F;pepper&#x2F;gallery&#x2F;</a>
telotortiumover 6 years ago
&gt; Extracting this information is not always trivial, mostly because of a gadzillion options to a gadzillion git commands – I don’t think there is a single person alive who knows them all. Probably not even Linus Torvalds himself :).<p>Or Junio Hamano, for that matter (although there is a greater chance :)
stblackover 6 years ago
In the same vein, git-extras (<a href="https:&#x2F;&#x2F;github.com&#x2F;tj&#x2F;git-extras&#x2F;blob&#x2F;master&#x2F;Commands.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tj&#x2F;git-extras&#x2F;blob&#x2F;master&#x2F;Commands.md</a>) has many similar metrics within a wider git enhancement suite.
miguelmotaover 6 years ago
Bonus points for not being a bloated Node.js NPM module; it&#x27;s all one bash script
hwjover 6 years ago
For people wondering what that&#x27;s written in: bash (394 LoC according to tokei).
Waterluvianover 6 years ago
So I installed and use `git open`. How do these applications get to work, prefaced by `git`? Wouldn&#x27;t `git quick-stats` just invoke `git` with an invalid parameter?
评论 #18702794 未加载
评论 #18702777 未加载
评论 #18705463 未加载