Peregrin
Peregrin

Reputation: 436

perforce diff command: how to combine filtering arguments?

Documentation says "To pass more than one option to the diff routine, group them together. For example: p4 diff -dub file" While this might be working for "-d" option, it doesn't work for "-s".

> p4 diff -sa ...
file1
> p4 diff -se ...
file2
> p4 diff -sd ...
file3
> p4 diff -saed ...
file1

It seems to be taking only the first argument. Is it a bug in perforce or there is a way combine them?

Upvotes: 0

Views: 93

Answers (1)

Samwise
Samwise

Reputation: 71454

Those options can't be combined. Trying to specify more than one should be reported as a usage error IMO.

For the most part they specify conditions that are mutually exclusive, so if you were able to combine all those filters ("display only files that are unopened AND opened AND ..."), you'd just get empty output. :)

Upvotes: 1

Related Questions