Search code examples
clearcaseannotate

How to use ClearCase annotate sub-command?


I'm trying to find out how to get a code history report in which I get the file version for each of code line. I don't need to get multiple rows for each code line. only one. The 'annotate' sub-command has many arguments and I can't find the good one for that purpose. Do you know how to get that?

Many thanks


Solution

  • the file version for each of code line

    That almost looks like the last example of the cleartool annotate command:

    cleartool annotate -out - -fmt "%Vn |" -rm -nheader util.c
    

    Meaning: no header, only text line annotations, including the deleted ones.