]> git.ipfire.org Git - thirdparty/git.git/commit - list-objects-filter-options.c
list-objects-filter-options: move error check up
authorMatthew DeVore <matvore@google.com>
Thu, 27 Jun 2019 22:54:09 +0000 (15:54 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Jun 2019 15:41:53 +0000 (08:41 -0700)
commitf56f764279be2433ecf3cb3a484210bcaffea70c
tree211ef3c804dccbfffcc66ab35941c79a15efd5b9
parente987df5fe62b8b29be4cdcdeb3704681ada2b29e
list-objects-filter-options: move error check up

Move the check that filter_options->choice is set to higher in the call
stack. This can only be set when the gentle parse function is called
from one of the two call sites.

This is important because in an upcoming patch this may or may not be an
error, and whether it is an error is only known to the
parse_list_objects_filter function.

Signed-off-by: Matthew DeVore <matvore@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
list-objects-filter-options.c