RTC ignores certain lines in source

I have a project that generates JavaScript files. I would like to add the date and time when these files are generated. But I want the RTC to ignore these lines.

How should I do it?

+3


source to share


1 answer


But I want the RTC to ignore these lines.

This is not possible with the Jazz RTC.

And you don't add version metadata (like who modifies it) to the data (file).

What you want to see is done using RTC annotate .

https://jazz.net/library/content/articles/rtc/3.0/file-annotation-usage/images/annotation.png



But if you create a file with such information, you can add this generated file to .jazzignore

to make sure RTC is not trying to verify it.

You can use lscm annotate

to create such a file.
See this example:

$ lscm annotate flux.capacitor/requirements.txt 
1 Marty (8556) 2009-11-04 02:47 PM                    - Must not need any more than 1.5 gigawatts of power 
2 Marty (8556) 2009-11-04 02:47 PM                    - Determine minimum necessary speed 
3 Doc   (8616) 2009-11-04 02:47 PM Results of initial t - Initial trials suggest 60kmh 

      

You can redirect the output of this command to a file:

$ lscm annotate flux.capacitor/requirements.txt > flux.capacitor/requirements.annotated

      

+1


source







All Articles