I have created a symbolic link directory in Unix and I would like to add it to perforce.
(this question relates to symlinks on Unix. Windows symbolic links can have very different behaviour from Unix.)
ln -s ../blah/dir1 dir2
If I right-click on "dir2" in the p4v GUI, it will add every file under ../blah/dir1 as a new file (even if these files are already in Perforce) and fubar everything.
If I do a "p4 add dir2" from the command line, it will add every file under ../blah/dir1 as a new file (even if these files are already in Perforce) and fubar everything.
What is the correct syntax?
Add the symbolic link from the shell using the -t option to set the symlink type.
p4 add -t symlink dir2