开发者

A clearcase equivalent of svn blame / git blame?

开发者 https://www.devze.com 2023-03-22 17:52 出处:网络
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

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

精彩评论

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