Search code examples
clearcase

Displaying comment 'title' in ClearCase


Is there any native way of only listing a comment's "title" in ClearCase? When I say title, I mean something similar to what Git has, where a comment of the type

Some title

Some detailed description of the comment...

when added, will mostly show up as only Some title in most Git commands, unless the user explicitly wants to see the full description.


Solution

  • As I commented, the closest is to print the first line of the description (cleartool describe) of a version:

    cleartool describe –fmt "%c" afile | head -1
    

    From fmt_ccase, "%c" display the associated comment.

    This differ from the UCM activities (which are grouping several versions together): they do have an "headline" (title).