I wonder if there is an equivalent method to git's .gitignore file for ignoring files to be sourced controlled in IBM Rational ClearCase?
I do not want to have some files, e.g. eclipse specific files, accidentially added to the source control.
Not natively supported.
For files already added, but that needs to be ignored from now on, you can add a config spec selection rule "element /path/to/file -none
"
For files not yet added to source control, there is no easy solution, except making a pre-op trigger on add to source control operation (mkelem
), which would call a script in charge of parsing a custom "ignore" file, and which would accept or deny the "add to source control" operation to proceed.
See also "ClearCase delete view private files only" (Apr. 2013, one year after this answer), which helps to clean up private files.