commit 9015538a26494f17ba743f4faf875a4032404650 from: Omar Polo date: Sat Mar 11 11:45:44 2023 UTC diffstat: fix parsing of deleted files don't remember why the `file == ""` clausole was added. file is set by switchfile() and never reset until the end, so depending on the order deleted files may not be showed in the summary (but their line still being counted for the `total') commit - 5c55f69d88ad8fa4592bd5448d7a58e17c5e23f3 commit + 9015538a26494f17ba743f4faf875a4032404650 blob - 7f97436bab0ca598f57d08a6690c0121389fcb04 blob + a318dbe86951f1c0e953ffda59d41696b4a8de92 --- bin/diffstat.lp +++ bin/diffstat.lp @@ -68,7 +68,7 @@ name for the stats. Let's use the "old" name instead. Similarly, extract the "old" file name for when it's needed. - state == "out" && /^--- / && file == "" { + state == "out" && /^--- / { delfile = filename($0) }