This example is from the cleartool diff man page, and that diff is not your usual diff format.
For ClearCase:
---------[changed X]----------|----------[changed to Y]---------
One or more lines changed in place.
- X indicates which lines in the first file were changed.
- Y indicates where the replacement lines occur in the second file.
So here:
- 1 line changed
- replaced by 3 lines
There is no direct equivalent with the diff unified format used by the other tools (like git), which means this question, using the default cleartool format, is specific to ClearCase.
If the cleartool diff used the -diff_format
option, that would causes both the headers and differences to be reported in the style of the UNIX and Linux diff utility, which would let a more common interpretation of that diff.
Whe it comes to LOC and diff, a good reference is CLOC, which will give a diff loc focusing on lines whic are:
- same
- modified
- added
- removed
In your case:
- 1 line modified
- 2 lines added