In Perforce, how can I create a patch file that has the changes that are in the file currently saved, compared to the version? The instructions for the GUI client or CLI client will be great.
I see how to get the difference between the two change lists, but not how to simply get the difference between the last change list and the current state of the files. In addition, I see that in the GUI client, I can right-click on the file and select "Diff Against Have Revision" from the context menu, which shows me what I'm looking for, but I cannot figure out how to get it in file.
I'm basically looking for the equivalent of what git diff <file> > patch.diff does in Git -land.
diff perforce p4v
Garrett albright
source share