Perforce: Keeping Perforce from altering text-file format

前端 未结 5 1216
猫巷女王i
猫巷女王i 2021-02-19 10:20

Is there a way to tell Perforce to leave text files alone without setting the file-type as binary? Or barring that, is there a way to tell the Perforce client to diff binaries?

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-19 10:47

    When adding text files that you want to be considered binary to Perforce, use the command p4 add with the -t option to override the type mapping table. See the documentation here. The example given there is p4 add -t binary file.pdf.

提交回复
热议问题