git/builtin
Jeff King 0eb8d3767c cat-file: report an error on multiple --batch options
The options callback for --batch and --batch-check detects when the two
mutually incompatible options are used. But it simply returns an error
code to parse-options, meaning the program will quit without any kind of
message to the user.

Instead, let's use error() to print something and return -1. Note that
this flips the error return from 1 to -1, but negative values are more
idiomatic here (and parse-options treats them the same).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-11-06 12:55:36 +09:00
..
2018-10-19 13:34:02 +09:00
2018-11-06 12:55:35 +09:00
2018-08-13 14:14:43 -07:00
2018-10-30 15:43:43 +09:00
2018-08-27 14:33:43 -07:00
2018-10-19 13:34:02 +09:00
2018-05-13 10:45:05 +09:00
2018-08-15 15:08:23 -07:00
2018-08-20 15:31:40 -07:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:07 +09:00
2018-10-19 13:34:02 +09:00
2018-09-17 13:49:41 -07:00
2018-10-16 16:16:02 +09:00
2018-10-19 13:34:06 +09:00
2018-10-26 14:22:13 +09:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-05-30 14:04:05 +09:00
2018-07-18 12:20:28 -07:00
2018-08-20 15:31:40 -07:00
2018-10-19 13:34:02 +09:00
2018-08-27 14:33:43 -07:00
2018-10-19 13:34:02 +09:00
2018-11-02 11:04:59 +09:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-10-30 15:43:39 +09:00
2018-08-29 11:32:49 -07:00
2018-08-27 14:33:43 -07:00
2018-03-15 12:01:08 -07:00
2018-05-29 00:28:22 +09:00
2018-11-06 12:55:36 +09:00
2018-10-19 13:34:02 +09:00