From 5345684e1abb9b87695e33e4ea621314e9b7adc3 Mon Sep 17 00:00:00 2001 From: Martin Stajnko Date: Tue, 25 Aug 2026 21:28:00 +0200 Subject: [PATCH] refactor: drop redundant comment above the sort The stable-sort behaviour is described in the Design decisions section of the README. --- main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.py b/main.py index 6165814..f984500 100644 --- a/main.py +++ b/main.py @@ -41,8 +41,6 @@ def main() -> None: # Also covers UnicodeDecodeError, which is a subclass of ValueError. sys.exit(f"error: {error}") - # Most changed first. The sort is stable and keys only on the count, - # so lines with equal counts keep their original file order. changed_lines.sort(key=lambda item: item[0], reverse=True) for _, line in changed_lines: