ls_files.c: consolidate two for loops into one
authorZheNing Hu <adlternative@gmail.com>
Sat, 23 Jan 2021 10:20:09 +0000 (10:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 Jan 2021 19:48:20 +0000 (11:48 -0800)
commited644d1666415cbed14cc6cd17a658bb56e7f28b
treec13da2d9839abb5f45ba808e99b46fa52fce263a
parentf1c462ea4119f58a230abd62096a174483930a18
ls_files.c: consolidate two for loops into one

This will make it easier to show only one entry per filename in the
next step.

Signed-off-by: ZheNing Hu <adlternative@gmail.com>
[jc: corrected the log message]
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-files.c