一个 clearcase 等同于 svn blame / git blame?

问题描述 投票:0回答:2

Rational Software的Clearcase中,有没有

cleartool
子命令,或者其他命令行工具,等同于SVN或者git中的
blame
命令?

version-control clearcase equivalent blame
2个回答
27
投票

最接近的是

cleartool annotate

annotate 命令列出一个版本的内容,注释每一行以指示何时以及在哪个版本中添加了该行。
您可以使用

–fmt
选项自定义注释,这在
fmt_ccase
参考页
中有描述。
默认情况下,annotate 将其输出写入文件扩展名为
.ann
.

的文件

要在终端上输出,如 SVN 或 git blame,命令行可能是:

cleartool annotate -out - source_file_path

1
投票

如果你想将命令输出发送到标准输出。

cleartool annotate -out - foo.c

© www.soinside.com 2019 - 2024. All rights reserved.