Commit Diff
- Commit:
9015538a26494f17ba743f4faf875a4032404650
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- 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')
- Actions:
- Patch | Tree
--- 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) }