Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perforce -- generate a diff including added files?

Tags:

diff

perforce

When I use "p4 diff", it ignores files that I have open for add. Is it possible to generate a diff that includes added files as well as changed files?

like image 708
kdt Avatar asked Dec 29 '09 10:12

kdt


1 Answers

Considering the diff in Perforce compare the files in the client workspace to revisions in the depot, the short answer is "no".
There is no recorded history to compare to for the added file (not committed to the depot before a submit)

The longer answer would involve a script to complete the diff with the full content of the added files. (kind of like in this SO question)

like image 160
VonC Avatar answered Jan 20 '23 21:01

VonC