P4 diff does not display newly added files

I need help. How to get diff using p4 diff so that my patch contains information about recently added files?

p4 add foo.cc
p4 diff > my.patch

my.patch should contain foo.cc

+3
source share
1 answer

p4 diff compares the files on your client with what is in the repository on the server. If you did not send your change list containing a new file to add, then the file is not on the server, so there is nothing to compare.

To use p4 diff ...

  • Mark the file to add as above ('p4 add // myworkspace / myfile')
  • Submit a list of changes to add the file to the P4 server ('p4 submit')
  • Checkout a new file locally using 'p4 edit // myworkspace / myfile'
  • run 'p4 diff//myworkspace/myfile'

3, . ( ), 4 .

-1

Source: https://habr.com/ru/post/1766321/


All Articles