19

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?

einpoklum
  • 118,144
  • 57
  • 340
  • 684
sarat
  • 10,512
  • 7
  • 43
  • 74

2 Answers2

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 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
einpoklum
  • 118,144
  • 57
  • 340
  • 684
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
1

If you want to send command output to stdout.

cleartool annotate -out - foo.c

Byungwoo Jeon
  • 71
  • 2
  • 7