Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 586 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 586 Bytes

p4-diff

Tool to generate a Perforce unified-diff from open or shelved changelists supporting add, edited and deleted files.

See help via p4-diff --help.

Diff from default changelist using opened files

p4-diff -c default > default.diff

Diff from specific changelist using the shelved files

p4-diff -c 123456 -s > shelved_123456.diff

Diff from specific changelist using opened files

p4-diff -c 123456 > opened_123456.diff

cd ~/other_source
patch --dry-run -Np6 -i opened_123456.diff