diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2015-05-03 20:00:00 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-06 13:35:48 -0700 |
commit | b48158ac94cf725834b70b4a5ab7f2d152a741d4 (patch) | |
tree | 3ab282155912445dc9136345d661d441b3f94131 /builtin/upload-archive.c | |
parent | sha1_file: support reading from a loose object of unknown type (diff) | |
download | tgif-b48158ac94cf725834b70b4a5ab7f2d152a741d4.tar.xz |
cat-file: make the options mutually exclusive
We only parse the options if 2 or 3 arguments are specified.
Update 'struct option options[]' to use OPT_CMDMODE rather than
OPT_SET_INT to allow only one mutually exclusive option and avoid the
need for checking number of arguments. This was written by Junio C Hamano,
tested by me.
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/upload-archive.c')
0 files changed, 0 insertions, 0 deletions