附录 A. CVS命令指南

目录
CVS命令整体结构
CVS的退出状态
默认选项与 ~/.cvsrc 文件
全局选项
通用命令选项
admin--Administration
checkout--Check out sources for editing
commit--Check files into the repository
diff--Show differences between revisions
export--Export sources from CVS, similar to checkout
history--Show status of files and users
import--Import sources into CVS, using vendor branches
log--Print out log information for files
rdiff--'patch' format diffs between releases
release--Indicate that a Module is no longer in use
update--Bring work tree in sync with repository

本附录描述了cvs命令的整体结构, 同时详细描述了一部分命令(其余的命令将另外说明; cvs命令快速参考见附录 B)。

CVS命令整体结构

CVS命令整体结构

cvs [ cvs_options ] cvs_command [ command_options ] [ command_args ]

cvs

cvs程序的名字.

cvs_options

一些会影响所有的cvs子命令的选项。这将在下面描述.

cvs_command

一个或多个不同的子命令。一些命令可以使用别名;命令的别名在相应命令的参考手册中有说明。只有两种情况可以忽略cvs_command: cvs -H 显示可选的命令列表,cvs -v 显示cvs自己的版本信息。

command_options

说明该命令的选项

command_args

这些命令的参数。

不幸的是在cvs_optionscommand_options之间存在一些混淆。 -l,当作为一个cvs_option时,只会影响一些命令。当作为command_option时有不同的含义,并会影响更多的命令。换句话说,不要把以上的分类看的很严格。而应该参考相应命令的文档。