ls_files.c: bugfix for --deleted and --modified
commitf1c462ea4119f58a230abd62096a174483930a18
authorZheNing Hu <adlternative@gmail.com>
Sat, 23 Jan 2021 10:20:08 +0000 (23 10:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 Jan 2021 19:48:11 +0000 (23 11:48 -0800)
tree74af5f75e258ed99d8015c27eda4889d15d128ed
parent66e871b6647ffea61a77a0f82c7ef3415f1ee79c
ls_files.c: bugfix for --deleted and --modified

This situation may occur in the original code: lstat() failed
but we use `&st` to feed ie_modified() later.

Therefore, we can directly execute show_ce without the judgment of
ie_modified() when lstat() has failed.

Signed-off-by: ZheNing Hu <adlternative@gmail.com>
[jc: fixed misindented code]
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-files.c