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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Cregit-Linux: how code gets into the kernel

7 点作者 follower大约 2 个月前

2 条评论

follower大约 2 个月前
The linked site contains a <i>token</i>-based (rather than <i>line</i>-based) git &quot;blame&quot; annotation view for Linux kernel releases, i.e. it allows you to discover which commit added a particular <i>token</i>--where &quot;a token is what the C syntax considers a token&quot;.<p>An advantage of a per-token commit attribution view is you don&#x27;t need to transit through the history of an entire <i>line</i>.<p>Cregit is the tool used to produce the per-token view: <a href="https:&#x2F;&#x2F;github.com&#x2F;cregit&#x2F;cregit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cregit&#x2F;cregit</a><p>I encountered Cregit recently while doing some &quot;code history spelunking&#x2F;archaeology&quot; and thought it seemed pretty nifty.<p>Decided to share the link as there have been a couple of recent HN threads which included discussion about the poor granularity of line-based git &quot;blame&quot; functionality.<p>The most recent kernel version on the site is v6.13: <a href="https:&#x2F;&#x2F;cregit.linuxsources.org&#x2F;code&#x2F;6.13&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cregit.linuxsources.org&#x2F;code&#x2F;6.13&#x2F;</a><p>Unfortunately, the tool itself seems not to be under active development, the most recently modified branch is from 2 years ago &amp; the main branch was last modified 6 years ago: <a href="https:&#x2F;&#x2F;github.com&#x2F;cregit&#x2F;cregit&#x2F;tree&#x2F;newinter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cregit&#x2F;cregit&#x2F;tree&#x2F;newinter</a>
评论 #43451798 未加载
评论 #43498828 未加载
thatguy27大约 2 个月前
Has anyone managed to build cregit [1] recently?<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;cregit&#x2F;cregit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cregit&#x2F;cregit</a>