In Rational Software's Clearcase, is there a cleartool
subcommand, or other command line tool, equivalent to the blame
command in SVN or in git?
Asked
Active
Viewed 4,273 times
19
2 Answers
27
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 thefmt_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
-
1Thank you @Nikola for updating those old links! – VonC Apr 23 '18 at 07:28
1
If you want to send command output to stdout.
cleartool annotate -out - foo.c

Byungwoo Jeon
- 71
- 2
- 7
-
I upvoted you, but this is really an improvement to the accepted answer, so I edited it in there. – einpoklum Mar 08 '23 at 17:41