Used by
Client? Used by
Server? Can be set in P4CONFIG file?
If the environment variable DIFF has been set, then the value of DIFF; otherwise, if the environment variable SHELL has been set to any value, then the program diff is used; otherwise, p4diff.exe. If the environment variable DIFF has been set, then the value of DIFF; otherwise, Perforce's internal diff routine is used.
The commands p4 describe, p4 diff2, and p4 submit all use a diff program built into the Perforce server program p4d. This cannot be changed.