Text modes

Each view has a text mode setting that specifies how it handles line terminator sequences. This setting applies only to file elements whose element type is text_file or a subtype of type text_file. You determine a view’s text mode when you create the view. You cannot change the text mode of a view after the view has been created.

A site default value stored in the Rational® ClearCase® registry determines which text mode is used when a new view is created. This value can be overridden on the command line and in GUIs that create views. For details about setting the default, see the setsite reference page.

You can create a view in one of three text modes:

In a snapshot view created in either insert_cr or strip_cr text mode, the <CR> characters are added or removed when the view is updated. In a dynamic view, the <CR> characters are added or removed when you open and read files. For both snapshot views and dynamic views, the <CR> manipulation is reversed (adding or removing <CR> characters as appropriate) during the checkin process.


Feedback