Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excluding directory from Perforce

Tags:

perforce

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

like image 704
gss5 Avatar asked Dec 16 '22 11:12

gss5


1 Answers

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.

like image 135
Mike O'Connor Avatar answered Jan 22 '23 10:01

Mike O'Connor