tags:

views:

14

answers:

1

Hi P4 experts, I need some help. How do I get diff using p4 diff so that my patch contains information about newly added files too ?

p4 add foo.cc
p4 diff > my.patch

my.patch should contain foo.cc

A: 

p4 can't directly find newly added files that you haven't told it about. Working Disconnected From The Perforce Server has example shell scripts which find new files (In the Add, Edit, and Delete Through the Command Line section).

However, if you've used p4 add (and p4 edit), then does the list of open files perhaps show you what you want?

p4 opened
Jon-Eric