CVS Diff 只输出修改过的文件?

发布于 2024-09-04 08:37:46 字数 268 浏览 3 评论 0原文

是否可以?在项目根目录的终端中运行 cvs diff ,仅输出修改后的文件(例如不在源代码管理中的本地文件和本地修改后的文件 - 主要是我对项目所做的操作)。

我正在运行 cvs diff --brief 但我仍然有太多结果,因为我的项目很大,并且有很多子目录 - 它显示了整个层次结构,我只想知道哪些文件是与 HEAD 修订版不同。我希望它每个文件输出一行 - 我将使用 VimDiff 进行合并。

顺便说一句,我正在使用 Linux。

Is it possible? Run a cvs diff in terminal at the project root that outputs only modified files (like local files that aren't in source control and local modified files - mainly what I did to my project).

I'm running cvs diff --brief but I still have too many results since my project is large, and with a lot of subdirectories - it shows the whole hierarchy and I just want to know which files are different from HEAD revision. I would like it to output one line per file - I'm going to merge using VimDiff.

I'm using Linux btw.

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

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

发布评论

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

评论(1

倾其所爱 2024-09-11 08:37:46

cvs diff 默认情况下仅报告有更改的文件,您可以使用 cvs-q 选项关闭有关目录的噪音(即,cvs -q diff;它适用于所有子命令)。如果 --brief 仍然产生过多的输出,那么您可能只是让沙箱漂移得太远了! (转储到文件并将其粘贴到编辑器中。或者通过管道传输到可以向后移动的分页实用程序,例如 less。)

cvs diff only reports files that have changes by default, and you can turn off the noise about directories with the -q option to cvs (i.e., cvs -q diff; it works for all subcommands). If --brief is still producing too much output, you've probably just let your sandbox drift too far! (Dump to a file and stick it in an editor. Or pipe to a paging utility that can go backwards, like less.)

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