generate-cmdlist.sh: don't call get_categories() from category_list()
commit0f05f22516ac8208452e1f2989dfd9adfbb70c3a
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 5 Nov 2021 14:08:02 +0000 (5 15:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Nov 2021 19:01:12 +0000 (5 12:01 -0700)
tree3064a02419dc971184b6b0c4f301445e9c3bb1dd
parent191eb491ed44b86c7ab4fe279c8ce47f030624b0
generate-cmdlist.sh: don't call get_categories() from category_list()

This isn't for optimization as the get_categories() is a purely shell
function, but rather for ease of readability, let's just inline these
two lines. We'll be changing this code some more in subsequent commits
to make this worth it.

Rename the get_categories() function to get_category_line(), since
that's what it's doing now.

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