diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-03-20 23:37:48 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-03-20 16:09:26 -0700 |
commit | 9614ad3ce09937f3124db09cc8c6dd2777a15515 (patch) | |
tree | 75e9bf80a4e47290f4d28ad05f27b05f5156da7b /builtin/reset.c | |
parent | ls-files: don't needlessly pass around stage variable (diff) | |
download | tgif-9614ad3ce09937f3124db09cc8c6dd2777a15515.tar.xz |
ls-files: refactor away read_tree()
Refactor away the read_tree() function into its only user,
overlay_tree_on_index().
First, change read_one_entry_opt() to use the strbuf parameter
read_tree_recursive() passes down in place. This finishes up a partial
refactoring started in 6a0b0b6de99 (tree.c: update read_tree_recursive
callback to pass strbuf as base, 2014-11-30).
Moving the rest into overlay_tree_on_index() makes this index juggling
we're doing easier to read.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/reset.c')
0 files changed, 0 insertions, 0 deletions