ls-tree: split up "fast path" callbacks
commit9c4d58ff2c385f49585197c8650356955e1fa02e
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 23 Mar 2022 09:13:15 +0000 (23 17:13 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Mar 2022 18:38:41 +0000 (23 11:38 -0700)
tree6115609bb201da8a142845685ec3b82f2869e10e
parent0f8878359207191195867ebd499abba3710f9f4b
ls-tree: split up "fast path" callbacks

Make the various if/else in the callbacks for the "fast path" a lot
easier to read by just using common functions for the parts that are
common, and have per-format callbacks for those parts that are
different.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Teng Long <dyroneteng@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-tree.c