如何使用 SourceGraph 判断我的 repo 中是否存在字符串?
How to tell if a string ever existed in my repo using SourceGraph?
我想查看我的存储库中是否存在某个字符串(删除的文件、更改的文件等)。在git,我想它会喜欢这个- git grep <regexp> $(git rev-list --all)
。这是基于这个 post How to grep (search) committed code in the Git history
我可以在 sourcegraph 中进行这样的搜索吗?如果是这样,语法是什么
这是我目前拥有的:
repo:^<url to my repo>$
documentation 的这一部分直接解决了它。我只是错过了。
您使用 glob 模式搜索存储库。
@*refs/heads/* - search across all branches
我想查看我的存储库中是否存在某个字符串(删除的文件、更改的文件等)。在git,我想它会喜欢这个- git grep <regexp> $(git rev-list --all)
。这是基于这个 post How to grep (search) committed code in the Git history
我可以在 sourcegraph 中进行这样的搜索吗?如果是这样,语法是什么
这是我目前拥有的:
repo:^<url to my repo>$
documentation 的这一部分直接解决了它。我只是错过了。
您使用 glob 模式搜索存储库。
@*refs/heads/* - search across all branches