在评论中搜索提交的文件

发布于 2024-10-10 15:22:39 字数 48 浏览 0 评论 0原文

CVS 中有没有一种方法可以搜索 cvs 存储库中注释中具有特定关键字的所有文件?

Is there a way in CVS to search all the files in a cvs repository having a particular keyword in the comment?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瑾夏年华 2024-10-17 15:22:40

不直接;您可以使用cvs log获取文件列表,将它们写入新文件fileList,然后使用xargs -i grep /dev/null搜索此列表“{}”<文件列表

奇怪的“/dev/null”是强制 grep 打印文件名。

Not directly; you can use cvs log to get the list of files, write them into a new file fileList and then search this list with xargs -i grep /dev/null "{}" < fileList.

The odd "/dev/null" is to force grep to print file names.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文