How can I grab my local changelist and send it to someone else in Perforce?

后端 未结 5 1407
南方客
南方客 2021-02-07 10:17

How can I grab my local changelist and send it to someone else in Perforce? More specifically, I would like to send unsubmitted changes from a local pending changelist to anothe

5条回答
  •  萌比男神i
    2021-02-07 10:42

    set P4DIFF=C:\cygwin\bin\diff.exe
    p4 diff -du -c 12345 > patch-to-head.diff
    
    # On Other machine
    patch -p1 < patch-to-head.diff
    

    I may be wrong on the env var there, and you might have to do some fixups on the diff file, but the general idea is that you generate a GNU Unified Diff, that you can send to people that can use GNU patch to apply it.

提交回复
热议问题