userdiff: add and use for_each_userdiff_driver()
commitf12fa9ee6c87efa8a926973bd203ef327686fb62
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 8 Apr 2021 15:04:19 +0000 (8 17:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Apr 2021 19:19:10 +0000 (8 12:19 -0700)
tree3fa83d5b34df870fd6e0744478444fa3bd3cda95
parent82512e008c82834df5a00ea79e1091da45b330b0
userdiff: add and use for_each_userdiff_driver()

Refactor the userdiff_find_by_namelen() function so that a new
for_each_userdiff_driver() API function does most of the work.

This will be useful for the same reason we've got other for_each_*()
API functions as part of various APIs, and will be used in a follow-up
commit.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
userdiff.c
userdiff.h