We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc80e6b commit 420d2afCopy full SHA for 420d2af
git/index/typ.py
@@ -57,7 +57,7 @@ def __call__(self, stage_blob: Tuple[StageType, Blob]) -> bool:
57
for pathlike in self.paths:
58
path: Path = pathlike if isinstance(pathlike, Path) else Path(pathlike)
59
# TODO: Change to use `PosixPath.is_relative_to` once Python 3.8 is no longer supported.
60
- if all(map(lambda t: t[0] == t[1], zip(path.parts, blob_path.parts))):
+ if all(i == j for i, j in zip(path.parts, blob_path.parts)):
61
return True
62
return False
63
0 commit comments