Junio C Hamano
68cbb20e73
show-branch: reject --[no-](topo|date)-order
...
"git show-branch --no-topo-order" behaved exactly the same way as
"git show-branch --topo-order" did, which was nonsense. This was
because we choose between topo- and date- by setting a variable to
either REV_SORT_IN_GRAPH_ORDER or REV_SORT_BY_COMMIT_DATE with
OPT_SET_INT() and REV_SORT_IN_GRAPH_ORDER happens to be 0. The
OPT_SET_INT() macro assigns 0 to the target variable in respose to
the negated form of its option.
"--no-date-order" by luck behaves identically to "--topo-order"
exactly for the same reason, and it sort-of makes sense right now,
but the "sort-of makes sense" will quickly break down once we add a
third way to sort. Not-A may be B when there are only two choices
between A and B, but once your choices become among A, B, and C,
not-A does not mean B.
Just mark these two ordering options to reject negation, and add a
test, which was missing. "git show-branch --no-reflog" is also
unnegatable, so throw in a test for that while we are at it.
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2023-07-19 22:00:39 -07:00
..
2023-04-11 08:52:10 -07:00
2023-04-11 08:52:10 -07:00
2020-07-30 19:18:06 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:31 -07:00
2023-04-11 08:52:10 -07:00
2023-05-15 13:59:03 -07:00
2023-04-11 08:52:10 -07:00
2023-04-24 12:47:32 -07:00
2023-04-11 08:52:10 -07:00
2023-05-17 10:11:41 -07:00
2023-04-24 12:47:32 -07:00
2023-03-21 10:56:54 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:51 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:31 -07:00
2023-04-24 12:47:32 -07:00
2023-05-09 16:45:46 -07:00
2023-03-21 10:56:51 -07:00
2023-04-11 08:52:08 -07:00
2023-04-11 08:52:09 -07:00
2023-04-11 08:52:10 -07:00
2023-04-24 12:47:32 -07:00
2023-03-21 10:56:53 -07:00
2023-05-10 10:23:29 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:32 -07:00
2023-03-28 14:11:24 -07:00
2023-04-25 13:56:20 -07:00
2023-04-11 08:52:10 -07:00
2023-05-09 14:26:36 -07:00
2023-03-21 10:56:54 -07:00
2023-04-24 12:47:33 -07:00
2023-05-09 16:45:46 -07:00
2023-05-09 16:45:46 -07:00
2023-04-25 13:56:20 -07:00
2023-04-25 13:56:20 -07:00
2023-04-25 13:56:20 -07:00
2023-05-15 13:59:07 -07:00
2023-03-21 10:56:53 -07:00
2023-04-21 15:35:05 -07:00
2023-05-09 16:45:46 -07:00
2023-05-02 08:48:23 -07:00
2023-04-25 13:56:20 -07:00
2023-05-09 16:45:46 -07:00
2023-04-20 14:33:36 -07:00
2023-04-11 08:52:10 -07:00
2023-04-11 08:52:10 -07:00
2023-04-24 12:47:32 -07:00
2023-03-21 10:56:51 -07:00
2023-04-27 16:00:59 -07:00
2023-04-24 12:47:32 -07:00
2023-03-21 10:56:51 -07:00
2023-05-09 16:45:46 -07:00
2023-04-25 13:56:20 -07:00
2023-05-09 16:45:46 -07:00
2023-04-11 08:52:09 -07:00
2023-03-21 10:56:53 -07:00
2023-04-06 13:38:31 -07:00
2023-04-11 08:52:09 -07:00
2023-03-21 10:56:54 -07:00
2023-05-09 16:45:46 -07:00
2023-03-28 14:11:24 -07:00
2023-05-09 16:45:46 -07:00
2023-05-15 13:59:06 -07:00
2023-04-11 08:52:10 -07:00
2023-04-25 13:56:20 -07:00
2023-03-21 10:56:51 -07:00
2023-03-21 10:56:53 -07:00
2023-04-24 12:47:32 -07:00
2023-05-06 14:32:20 -07:00
2023-04-11 08:52:10 -07:00
2023-05-06 14:34:09 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:51 -07:00
2023-03-21 10:56:51 -07:00
2023-03-21 10:56:51 -07:00
2023-04-11 08:52:10 -07:00
2023-05-09 16:45:46 -07:00
2023-05-15 13:59:05 -07:00
2023-04-11 08:52:09 -07:00
2023-04-24 12:47:32 -07:00
2023-04-25 13:56:20 -07:00
2023-05-09 16:45:46 -07:00
2023-04-06 13:38:31 -07:00
2023-03-28 14:11:24 -07:00
2023-03-28 14:11:24 -07:00
2023-04-06 13:38:31 -07:00
2023-05-09 16:45:46 -07:00
2023-04-11 08:52:10 -07:00
2023-04-24 12:47:32 -07:00
2023-04-11 08:52:09 -07:00
2023-04-11 08:52:10 -07:00
2023-04-11 08:52:09 -07:00
2023-04-17 18:05:13 -07:00
2023-04-24 12:47:32 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-07-19 22:00:39 -07:00
2023-04-24 12:47:32 -07:00
2023-04-11 08:52:09 -07:00
2023-04-25 13:56:20 -07:00
2023-04-25 13:56:20 -07:00
2023-03-21 10:56:54 -07:00
2023-04-25 13:56:20 -07:00
2023-03-21 10:56:51 -07:00
2023-04-25 13:56:20 -07:00
2023-04-25 13:56:20 -07:00
2023-04-25 13:56:20 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:31 -07:00
2023-05-09 16:45:46 -07:00
2023-03-21 10:56:51 -07:00
2023-04-25 13:56:20 -07:00
2023-04-11 08:52:09 -07:00
2023-03-21 10:56:51 -07:00
2023-04-11 08:52:09 -07:00
2023-05-09 16:45:46 -07:00
2023-05-09 16:45:46 -07:00