MCPcopy Create free account
hub / github.com/Samsung/UTopia / changed

Method changed

helper/git.py:60–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers 1

get_changeablesFunction · 0.80

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected