TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Git Heat Map – a tool for visualising git repo activity for each file

173 点作者 jmforsythe超过 2 年前

18 条评论

Weidenwalker超过 2 年前
If you think this is useful, you might also like codeatlas.dev and its Github Action (<a href="https:&#x2F;&#x2F;github.com&#x2F;codeatlasHQ&#x2F;codebase-visualizer-action">https:&#x2F;&#x2F;github.com&#x2F;codeatlasHQ&#x2F;codebase-visualizer-action</a>). It currently does not support per-contributor activity, but we put a lot of effort into making the diagrams beautiful to look at and the basic approach of using treemaps for visualisation seems very similar. In fact, could be cool to collaborate on this, DM me if interested!<p><a href="https:&#x2F;&#x2F;codeatlas.dev" rel="nofollow">https:&#x2F;&#x2F;codeatlas.dev</a>
评论 #34567313 未加载
评论 #34567005 未加载
arraypad超过 2 年前
This is similar to the Structure dashboard in Repography [1] which is a web app I built, with the added advantage that it&#x27;s kept up to date automatically so you can embed it in your README.md and not have to keep updating it yourself.<p>[1] <a href="https:&#x2F;&#x2F;repography.com&#x2F;app&#x2F;0&#x2F;strawberry-graphql&#x2F;strawberry&#x2F;structure" rel="nofollow">https:&#x2F;&#x2F;repography.com&#x2F;app&#x2F;0&#x2F;strawberry-graphql&#x2F;strawberry&#x2F;s...</a>
darknavi超过 2 年前
This is cool. The visualization reminds me of the visualization of QDirStat&#x2F;WinDirStat.<p>Also shout out to the (mostly useless but cool looking) git history visualizer, Gource[0].<p><a href="https:&#x2F;&#x2F;gource.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gource.io&#x2F;</a>
评论 #34566003 未加载
评论 #34567307 未加载
pushedx超过 2 年前
This will show the 30 &quot;hottest&quot; files in a repo.<p><pre><code> git log --pretty=format: --name-only | sort | uniq -c | sort -rg | head -n 30</code></pre>
thecodrr超过 2 年前
I wonder if this can be done faster using the same approach as git-filter-repo or bfg. 68 minutes for something like this is a long time.<p>Otherwise looks really cool.
评论 #34570844 未加载
herrvogel-超过 2 年前
I sometimes think of similar tool that would give you this information on a more fine grained level. Like functions, scopes or lines.
jemmyw超过 2 年前
It didn&#x27;t work for me:<p><pre><code> File &quot;git-database.py&quot;, line 263, in &lt;module&gt; main() File &quot;git-database.py&quot;, line 247, in main last_commit = handle_commit(cur, lines) File &quot;git-database.py&quot;, line 178, in handle_commit handle_match(cur, matches[i], commit_lines[2+i], fields) File &quot;git-database.py&quot;, line 197, in handle_match p, n = secondary_line.split(&quot;|&quot;) ValueError: not enough values to unpack (expected 2, got 1)</code></pre>
评论 #34571880 未加载
abhishekbasu超过 2 年前
I wonder if this can somehow be used as a tool for quick visual inspection of architecture compliance. Maybe the size of the box could be selected before display to denote a custom metric. For example, if the size of the box for each file was proportional to the (number_of_lines_edited) * (current_date - file_creation_date), then modularity could demand that the size of the boxes remain small. (pardon the musings of a non software engineer on a Saturday night)
评论 #34564922 未加载
welder超过 2 年前
WakaTime just released the same feature 4 days ago using IDE activity instead of commits. [0] Scroll to the bottom to see the bubble chart screenshot.<p>[0] <a href="https:&#x2F;&#x2F;wakatime.com&#x2F;blog&#x2F;58-chatgpt-prototyped-our-new-feature" rel="nofollow">https:&#x2F;&#x2F;wakatime.com&#x2F;blog&#x2F;58-chatgpt-prototyped-our-new-feat...</a>
评论 #34569154 未加载
phaer超过 2 年前
Looks useful on big repositories!<p><a href="https:&#x2F;&#x2F;github.com&#x2F;nixos&#x2F;nixpkgs&#x2F;">https:&#x2F;&#x2F;github.com&#x2F;nixos&#x2F;nixpkgs&#x2F;</a> would be a great benchmark for a tool like this :) One of the larger repos on github, close to half a million commits by a large set of contributors to thousands of files.
jeffreygoesto超过 2 年前
If you are an org with a large codebase and want to get many more insights, there is Seerene, it&#x27;s commercial but takes the idea of repo analysis to the extremes (not affiliated, just a happy user)<p><a href="https:&#x2F;&#x2F;www.seerene.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.seerene.com&#x2F;</a>
评论 #34565890 未加载
ozim超过 2 年前
Great that is one of the tools I had somewhere on the back of my head.<p>Nice to see which parts are changing the most in a project to maybe see if it should be improved or at least to direct efforts of improving quality to these spots.
hamasho超过 2 年前
I love this, thanks!<p>It would be nice if the heatmap showed addition, deletion, and possibly modification separately. I can&#x27;t think of suitable visualization methods, but if I can see them individually, it gives more insights.
pizza超过 2 年前
This is really cool. Some other things might want to be able to visualize are this + a recency filter, or this + treesitter support, in order to be able to query eg which classes or functions have dominated
nativecoinc超过 2 年前
I want to do some whitespace refactoring on the files in our project. File activity is useful for that since then I can change files that no one is likely to be touching.
nonethewiser超过 2 年前
How much faster are your benchmarks using WAL mode? <a href="https:&#x2F;&#x2F;www.sqlite.org&#x2F;wal.html" rel="nofollow">https:&#x2F;&#x2F;www.sqlite.org&#x2F;wal.html</a>
评论 #34565796 未加载
评论 #34565484 未加载
llagerlof超过 2 年前
Add installation procedures.
评论 #34564115 未加载
breck超过 2 年前
Don&#x27;t have time to install but I would pay $10 in NEAR coin if you can email or post the results of my repos to me (breck7@gmail.com):<p><a href="https:&#x2F;&#x2F;github.com&#x2F;breck7&#x2F;jtree">https:&#x2F;&#x2F;github.com&#x2F;breck7&#x2F;jtree</a> and <a href="https:&#x2F;&#x2F;github.com&#x2F;breck7&#x2F;pldb">https:&#x2F;&#x2F;github.com&#x2F;breck7&#x2F;pldb</a><p>Update: Got the email. Thank you! NEAR sent!
评论 #34564556 未加载