If I checkin a codebase into perforce, what is the proper way to exclude dirs? I've noticed that deleting the folder from the workspace excludes it from the depot, but is this the proper way?
Thanks
If the directories that you want to exclude should not be version controlled at all, then the proper thing to do is delete those directories, which will remove them from the repository.
If those directories do belong in source control, and you just want to exclude them explicitly from your workspace, you can do that by editing your workspace view. For example:
//depot/... //my-workspace/...
-//depot/folder-to-remove/... //my-workspace/folder-to-remove/...
That will exclude folder-to-remove
and all its subdirectories from your workspace.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With