有没有办法从命令行获取简短的CVS状态? [英] Is there a way to get a short CVS status from command line?
本文介绍了有没有办法从命令行获取简短的CVS状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在进行 cvs更新
时,您会得到一个很好的存储库状态摘要,例如:
When doing a cvs update
, you get a nice summary of the state of the repository, for example:
M src/file1.txt
M src/file2.txt
C src/file3.txt
A src/file4.txt
? src/file5.txt
是否有一种无需实际更新即可获取此文件的方法?我知道有 cvs状态
,但这是冗长的方法:
Is there a way to get this without actually updating? I know there is cvs status
, but this is way to verbose:
===================================================================
File: file6.txt Status: Up-to-date
Working revision: 1.2
Repository revision: 1.2 /var/cvs/cvsroot/file6.txt,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)
我当然可以编写脚本来完成从后者到前者的转换,但这似乎是在浪费时间
I could of course make a script to do the transformation from the latter to the former, but it seems a waste of time since cvs can obviously produce the former.
推荐答案
您可以使用-n标志获取更新输出,而无需实际更新文件。您还可以添加-q(安静)以禁止显示任何服务器消息。
You can use the -n flag to get the update output without actually updating the files. You can also add -q (quiet) to suppress any server messages.
cvs -q -n update
这篇关于有没有办法从命令行获取简短的CVS状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文