Ravi
Ravi

Reputation: 249

How to save cleartool diff file

Used rcleartool> diff -g -pred myfile.xml to get the file differences grahically. But is there a way to save this diff file? For me the file save button is disabled. Any hints?

Upvotes: 1

Views: 338

Answers (2)

VonC
VonC

Reputation: 1323573

I would start by omitting the -g (-graphical) optin of the diff command: that should yield a text result, that you can easily redirect to a file for saving its result.

rcleartool> diff -pred myfile.xm > res

You could do so from a regular CMD/bash session as well using rcleartool directly:

rcleartool diff -pred myfile.xm > res

See also "cleartool: how to write the result from command find to a text file".

Upvotes: 1

Brian Cowan
Brian Cowan

Reputation: 1073

Also, the reason the save option is disabled is because the diff tool is also the merge tool. The "save" option is only enabled during a merge, and only when all unresolved merge points have been handled.

Upvotes: 1

Related Questions