kevans 277d224e09 diff(1): don't reject specifying the same format multiple times
This may happen, for instance, if one happens to have an alias of diff to
diff -up and attempts to specify the amount of context on top of that.

Aliases like this may cause other problems, but if they're really not ever
generating non-unified diffs then we should at least not break that
use-case.

In addition, we'll now pick up a format mismatch if -p is specified with
!contextual && !unified && !unset.

Fix up a small trailing whitespace nit in the tests while we're here, and
add tests to make sure that we can double up all the formatting options.

Reported by:	jbeich
MFC after:	3 days
2020-04-28 14:33:33 +00:00
..
2019-01-12 12:35:02 +00:00
2018-12-23 01:05:52 +00:00
2019-12-11 17:37:53 +00:00
2020-02-12 00:16:56 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2020-02-12 00:16:56 +00:00
2019-07-19 15:10:53 +00:00
2020-03-11 13:51:01 +00:00
2019-10-28 21:48:20 +00:00
2019-12-07 20:01:55 +00:00
2019-04-22 17:52:46 +00:00
2019-12-11 17:37:53 +00:00
2020-03-14 05:57:22 +00:00
2019-12-11 17:37:53 +00:00
2020-04-06 23:20:20 +00:00
2019-09-21 21:02:57 +00:00
2019-08-25 01:05:01 +00:00
2020-03-17 16:42:25 +00:00
2019-11-12 22:31:59 +00:00
2019-06-29 18:41:40 +00:00
2020-03-29 19:16:14 +00:00
2019-09-09 15:37:40 +00:00
2018-11-04 16:58:55 +00:00
2019-12-11 17:37:53 +00:00
2018-11-20 00:06:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-10 19:16:00 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-05-01 19:35:45 +00:00
2019-12-11 17:37:53 +00:00
2020-03-26 17:58:52 +00:00
2019-02-21 15:08:25 +00:00
2020-02-12 00:16:56 +00:00
2019-12-11 17:37:53 +00:00
2020-04-03 14:47:40 +00:00
2019-11-20 19:43:34 +00:00
2018-11-12 07:14:34 +00:00
2019-07-19 20:04:31 +00:00
2019-08-23 16:03:23 +00:00
2019-04-19 02:54:13 +00:00
2020-03-23 19:01:23 +00:00