Answer stability round 1: 0 🔴, 2 🟡 (0 misread); read non-ASCII paths with numstat -z, and say on stderr when a chunk's details cannot be read
This commit is contained in:
@@ -9,7 +9,7 @@ def named_paths(text: str, tracked: list[str]) -> list[tuple[str, int]]:
|
||||
|
||||
|
||||
def named_files(text: str, tracked: list[str]) -> list[str]:
|
||||
"""Each tracked file that a backticked span in text names, itself or by a folder holding it, once, in tracked's order."""
|
||||
"""Each tracked file that a backticked span in text names, either the file itself or a folder holding it, once, in tracked's order."""
|
||||
named = spans(text)
|
||||
return [path for path in tracked if any(holds(span, path) for span in named)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user