MCPcopy
hub / github.com/deadc0de6/dotdrop / _diff

Method _diff

dotdrop/comparator.py:174–181  ·  view source on GitHub ↗

diff two files

(self, local_path, deployed_path, header=False)

Source from the content-addressed store, hash-verified

172 return ''.join(ret)
173
174 def _diff(self, local_path, deployed_path, header=False):
175 """diff two files"""
176 out = diff(modified=local_path, original=deployed_path,
177 diff_cmd=self.diff_cmd, debug=self.debug)
178 if header and out:
179 lshort = os.path.basename(local_path)
180 out = f'=> diff \"{lshort}\":\n{out}'
181 return out

Callers 1

_comp_fileMethod · 0.95

Calls 1

diffFunction · 0.90

Tested by

no test coverage detected