]> git.ipfire.org Git - thirdparty/git.git/commit
unpack-trees: drop unused error_type parameters
authorJeff King <peff@peff.net>
Wed, 20 Mar 2019 08:15:27 +0000 (04:15 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Mar 2019 09:34:09 +0000 (18:34 +0900)
commitdf351c6e676e8eea0defa00ea919ad7da6bd03f1
treeb70c098b7ffde24e7fbd9653bb95b4bbefe4a57c
parent664296985c2f05df83da9b859c258d97e6a11ba3
unpack-trees: drop unused error_type parameters

The verify_clean_subdirectory() helper takes an error_type parameter
from the caller, but doesn't actually use it. Instead, when it calls
add_rejected_path() it passes NOT_UPTODATE_DIR, its own custom error
type which is more specific than what the caller provides. Likewise for
verify_clean_submodule(), which always passes WOULD_LOSE_SUBMODULE.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c