From: Teng Long <dyroneteng@xxxxxxxxx> This patchset aims to do works on refactoring and cleanup of ls-tree.c. The patches can be viewed as two parts: * Part 1: from Ævar Arnfjörð Bjarmason which mentioned in his RFC patchset[1] and Ævar suggests to submit a separate clean-up series. After I read them, I accept them all. * Part 2: fÆvarrom me which introduced in my RFC patchset[2] and after I accepted Ævar's patches, I keep two patches from [2], the left patches in [2] may no longer be needed. [1] https://public-inbox.org/git/RFC-cover-0.4-00000000000-20221117T134528Z-avarab@xxxxxxxxx/ [2] https://public-inbox.org/git/20221117113023.65865-1-tenglong.tl@xxxxxxxxxxxxxxx/ Thanks. Teng Long (2): ls-tree: cleanup the redundant SPACE t3104: remove shift code in 'test_ls_tree_format' Ævar Arnfjörð Bjarmason (4): ls-tree: don't use "show_tree_data" for "fast" callbacks ls-tree: use a "struct options" ls-tree: fold "show_tree_data" into "cb" struct ls-tree: make "line_termination" less generic builtin/ls-tree.c | 257 ++++++++++++++++++++++---------------- t/t3104-ls-tree-format.sh | 1 - 2 files changed, 150 insertions(+), 108 deletions(-) -- 2.39.0.98.g174eaa53973.dirty