gitperforcegit-p4

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?


Solution

  • 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.