Reputation: 137574
I have a list of ignore rules in a p4ignore.txt
per http://www.perforce.com/perforce/doc.current/manuals/cmdref/env.P4IGNORE.html
I would like to list the files in my workspace matched by the ignore rules. How can I do that?
(In Git, this is easy https://stackoverflow.com/a/2196755/284795 )
As I understand p4 status
lists files in the workspace that either
I would like to list files in the workspace that are matched by the ignore rules, whether they exist in the repo or not.
Upvotes: 1
Views: 246
Reputation: 17481
If p4 status
is already returning no files, you can use p4 reconcile -I
to see what would be added if the ignore rules aren't used.
If p4 status
is returning files already, but you'd still like to see the difference, you can run it once with and once without -I
and diff the two.
p4 reconcile -n ... > /tmp/foo
p4 reconcile -nI ... > /tmp/foo2
diff /tmp/foo /tmp/foo2
Upvotes: 3