Difference between two versions in ClearCase dynamic view -
say , i've 2 different dynamic views in clearcase.
i know if there command give report with:
"x lines added , y lines deleted , z lines changed
" between 2 versions.
yes, can use diffstat produce nice, visual "x lines added , y lines deleted , z lines changed" overview (1).
here example of output comparing 2 latest versions of diffstat:
$ diff -u diffstat-1.53 diffstat-1.54 | diffstat changes | 12 +++++++++++- diffstat.1 | 4 ++-- diffstat.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 64 insertions(+), 9 deletions(-)
in case, run
diff -u /view/view1/somevob/some/dir_or_file /view/view2/somevob/some/dir_or_file | diffstat
(1) "z lines changed" impossible determine without analysing meaning of lines (and computer algorithm cannot that). e.g. if old line int x;
, new line int y;
, a) x
changed y
or b) x
removed , y
added?
Comments
Post a Comment