diff options
author | Teng Long <dyroneteng@gmail.com> | 2022-03-23 17:13:07 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-23 11:38:39 -0700 |
commit | 87af0ddf5f311e9b6e361daaa7fd591a230261a0 (patch) | |
tree | 1112af4f653ad1b2b3841ee36a6088d81217d36c /oidset.c | |
parent | ls-tree: rename "retval" to "recurse" in "show_tree()" (diff) | |
download | tgif-87af0ddf5f311e9b6e361daaa7fd591a230261a0.tar.xz |
ls-tree: simplify nesting if/else logic in "show_tree()"
Use the object_type() function to determine the object type from the
"mode" passed to us by read_tree(), instead of doing so with the S_*()
macros.
Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Teng Long <dyronetengb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'oidset.c')
0 files changed, 0 insertions, 0 deletions