Domanda

I'd like to use multi-line comments with a command's option '-c'.

For example:

ct ci -c "hello this should be a multiple \n comment!" file.txt

I write a program which does auto-commenting, but some comments are too long to read them clearly in just one line.

How would you pass a multi-line comment to the cleartool checkin command?

È stato utile?

Soluzione

Use the -cfile option of the cleartool checkin command.

That means:

Your script should:

  • write your comment in a file
  • use that file in the -cfile option.

(Make sure of your ClearCase version: there was a bug with that option, fixed only in 7.0.0.4+, 7.1.0.3+ and 7.1)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top