]> git.ipfire.org Git - thirdparty/git.git/commit - unpack-trees.c
unpack-trees: split display_error_msgs() into two
authorElijah Newren <newren@gmail.com>
Fri, 27 Mar 2020 00:48:57 +0000 (00:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Mar 2020 18:33:30 +0000 (11:33 -0700)
commit6271d77cb1ccfb7e4124593b4463446fe1188cda
treec61eaeac3a59e827ddf48beb78aee8716f74b367
parent1ac83f42da6437d74098f162fcfa37474c94e223
unpack-trees: split display_error_msgs() into two

display_error_msgs() is never called to show messages of both ERROR_*
and WARNING_* types at the same time; it is instead called multiple
times, separately for each type.  Since we want to display these types
differently, make two slightly different versions of this function.

A subsequent commit will further modify unpack_trees() and how it calls
the new display_warning_msgs().

Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1091-sparse-checkout-builtin.sh
unpack-trees.c
unpack-trees.h