Skip to content

The agent that grows with you

refactor(hermes_cli/web_git): document _review_result fill-in

Teknium779c70dc5448
diff --git a/hermes_cli/web_git.py b/hermes_cli/web_git.py
index f391f0cdadb..6f001a1e824 100644
--- a/hermes_cli/web_git.py
+++ b/hermes_cli/web_git.py
@@ -236,6 +236,7 @@ def repo_status(cwd: str) -> dict | None:
def _review_result(cwd: str, files: list[dict], base: str | None) -> dict:
+ """Sorted rows; untracked rows with no counts get their insertion count filled in."""
files.sort(key=lambda f: f["path"])
for file in files:
if file["status"] == "?" and file["added"] == 0 and file["removed"] == 0: