How do I determine what files in my ClearCase local view have not yet been added to source control?

前端 未结 3 462
轻奢々
轻奢々 2020-12-05 11:54

If I have added/removed/modified a large number of files in my local ClearCase view, how can I be certain that all the files have been added to source control?

3条回答
  •  孤街浪徒
    2020-12-05 12:25

    I use a similar dos command for windows, but I also pipe the results of the clear tool command to findstr to 'ignore' specific patterns (using regex) such as .keep files, dll's, and compiled files and folder locations that I don't want to add to source.

    Run the following command from the root folder of your view. If you have multiple top level folders then you'll need to run it once for each folder. Also, I believe this only works for SnapShot views.

    cleartool ls -recurse -view_only | findstr /vi ".dll$ .pdb$ .suo$ .keep$ .unloaded$ \\bin$ \\bin\\ \\debug$ \\debug\\ \\release$ \\release\\ \\obj$ \\obj\\ ^cleartool$" > c:\ItemsNotInSource.txt
    

提交回复
热议问题