(self)
| 58 | return self.execute(cmd) |
| 59 | |
| 60 | def changed(self) -> List[Path]: |
| 61 | cmd = ["git", "show", "--name-status"] |
| 62 | out = self.execute(cmd) |
| 63 | changed_files = [] |
| 64 | for line in out.splitlines(): |
| 65 | line = line.strip() |
| 66 | if not line or not line.startswith("M\t"): |
| 67 | continue |
| 68 | changed_files.append(self.root_dir / line.split("\t")[1]) |
| 69 | return changed_files |
| 70 | |
| 71 | def execute(self, cmd) -> str: |
| 72 | logging.debug(cmd) |
no test coverage detected