cat-file: mark batch options with NONEG
commit0ad1efb4b379b4d47166c04b3103c6ead3a79673
authorJeff King <peff@peff.net>
Mon, 5 Nov 2018 06:40:10 +0000 (5 01:40 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Nov 2018 03:55:35 +0000 (6 12:55 +0900)
treeebc2f398a514a42aaa7b2d156faed54f5280188a
parentf53c163bcd7ae9bf83aa87be81dc6a4661924f3e
cat-file: mark batch options with NONEG

Running "cat-file --no-batch" will behave as if "--batch" was given,
since the option callback does not handle the "unset" flag (likewise for
"--no-batch-check").

In theory this might be used to cancel an earlier --batch, but it's not
immediately obvious how that would interact with --batch-check. Let's
just disallow the negated form of both options.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/cat-file.c