开发者

A clearcase equivalent of svn blame / git blame?

In Rational Software's Clear开发者_运维问答case, is there a cleartool subcommand, or other command line tool, equivalent to the blame command in SVN or in git?


The closest one would be with cleartool annotate:

The annotate command lists the contents of a version, annotating each line to indicate when, and in which version, the line was added.
You can customize the annotations using the –fmt option, which is described in the fmt_ccase reference page.
By default, annotate writes its output to a file whose file-name extension is .ann.

To have the output on the terminal, like SVN or git blame, a command-line might be:

cleartool annotate -out - source_file_path


If you want to send command output to stdout.

cleartool annotate -out - foo.c

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜