summaryrefslogtreecommitdiff
path: root/builtin/upload-archive.c
diff options
context:
space:
mode:
authorLibravatar Karthik Nayak <karthik.188@gmail.com>2015-05-03 20:00:00 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-05-06 13:35:48 -0700
commitb48158ac94cf725834b70b4a5ab7f2d152a741d4 (patch)
tree3ab282155912445dc9136345d661d441b3f94131 /builtin/upload-archive.c
parentsha1_file: support reading from a loose object of unknown type (diff)
downloadtgif-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