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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Git Searcher, search commits for an added or removed string

3 点作者 seccode大约 1 年前
Hello all,<p>I created a command line utility called Git Searcher that can find in which commit any line of code was added; it can also find where a line of code was removed. I have found this very helpful for determining where code originated from and for debugging. I hope you find this useful!<p>Many thanks, Sam

4 条评论

al2o3cr大约 1 年前
How is this different from searching with &quot;git log -G&quot; or &quot;git log -S&quot;?<p><a href="https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-log#Documentation&#x2F;git-log.txt--Sltstringgt" rel="nofollow">https:&#x2F;&#x2F;git-scm.com&#x2F;docs&#x2F;git-log#Documentation&#x2F;git-log.txt--...</a>
评论 #40337419 未加载
评论 #40337429 未加载
Fudgel大约 1 年前
If you&#x27;re in VSCode, GitLens provides this too: <a href="https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=eamodio.gitlens" rel="nofollow">https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=eamodio....</a>
Zambyte大约 1 年前
I personally do this by doing `jj log -pr ..` and then searching with my pager (&#x2F;search expression).<p>My only nitpick with this is that it seems wrong to `git fetch` every time you want to search, but I think I understand why you did it.
评论 #40336877 未加载
seccode大约 1 年前
The long term goal of this project is to integrate a &quot;git search&quot; command to git. I think this would be better than a standalone script