aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-03-20 23:37:47 +0100
committerJunio C Hamano <gitster@pobox.com>2021-03-20 16:09:26 -0700
commitfcc7c12f1139d5b1fd657a4e89425f07dbc78d8a (patch)
treef775fb8b8fba59b7e841d86b4f3251f955557f8c /builtin/commit.c
parenttree.c API: move read_tree() into builtin/ls-files.c (diff)
downloadgit-fcc7c12f1139d5b1fd657a4e89425f07dbc78d8a.tar.gz
git-fcc7c12f1139d5b1fd657a4e89425f07dbc78d8a.zip
ls-files: don't needlessly pass around stage variable
Now that read_tree() has been moved to ls-files.c we can get rid of the stage != 1 case that'll never happen. Let's not use read_tree_recursive() as a pass-through to pass "stage = 1" either. For now we'll pass an unused "stage = 0" for consistency with other read_tree_recursive() callers, that argument will be removed in a follow-up commit. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions