Jump to content


diff: how to combine filtering options?

diff filter group combine

  • Please log in to reply
1 reply to this topic

#1 Peregrin

Peregrin

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 20 July 2018 - 01:33 PM

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?

#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 611 posts

Posted 20 July 2018 - 03:32 PM

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. :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users