MCPcopy
hub / github.com/jisaacks/GitGutter / diff

Method diff

modules/handler.py:364–370  ·  view source on GitHub ↗

Run git diff to check for inserted, modified and deleted lines. Returns: Promise: The Promise object containing the processed git diff.

(self)

Source from the content-addressed store, hash-verified

362 return self.git_tracked
363
364 def diff(self):
365 """Run git diff to check for inserted, modified and deleted lines.
366
367 Returns:
368 Promise: The Promise object containing the processed git diff.
369 """
370 return self.update_git_file().then(self._run_diff)
371
372 def _run_diff(self, updated_git_file):
373 """Call git diff and return the decoded unified diff string.

Callers 1

runMethod · 0.80

Calls 2

update_git_fileMethod · 0.95
thenMethod · 0.80

Tested by

no test coverage detected