ccm ckpt|checkpoint [-task task_spec] [-t|-to version|file_spec]
[-c|-comment comment_string] [-ce|-commentedit]
[-cf|-commentfile file_path] [-cr|-commentreplace] file_spec...
可以将此选项与 -commentedit 和 -commentfile 结合使用。如果使用 -commentedit 选项,注释将在缺省文本编辑器中显示。
如果不指定任务但已设置当前任务,那么新创建的对象版本与当前任务关联。与设置对象版本检查点关联的任何任务都保持不变。
ccm ckpt -c "Phase 1 works." main.c
Adding 'release'
attribute with value '2.0' to object main.c-3:csrc:11
Associated object main.c-3:csrc:11 with task 36
Checkpointed
object version: 'main.c-2:csrc:11'
ccm ckpt -c "Trying Joe's algorithm." -t joe main.c
Adding 'release' attribute with value '2.0'
to object main.c-joe:csrc:11
Associated object main.c-joe:csrc:11
with task 36.
Checkpointed object version: 'main.c-3:csrc:11'