CVS Diff 只输出修改过的文件?
是否可以?在项目根目录的终端中运行 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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 tocvs
(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, likeless
.)