Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of Perforce file ".perforce"?

What is the purpose of Perforce configuration file .perforce? Where may I find a sample file showing its contents?

Git-p4 Usage refers to this file, but I don't have this file in any of my workspaces nor in my home directory and have not seen this file mentioned in any other Perforce documentation. Does it have any purpose outside of the context of git-p4? Does it apply to both Windows and Unix environments?

like image 290
Derek Mahar Avatar asked Mar 21 '11 16:03

Derek Mahar


1 Answers

I believe it is referring to a P4CONFIG file. This is a property file that can set Perforce variables when you are working in the same directory or a sub directory of the config file. The name of the file is not important because you set the name using the "P4CONFIG" variable.

The config files are very useful if you have multiple clients because you can let the config files manage your environment for you just based on your current directory.

like image 110
JasonMArcher Avatar answered Oct 06 '22 20:10

JasonMArcher