MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / diff_hook

Method diff_hook

aura/diff.py:144–152  ·  view source on GitHub ↗
(self, diff: Diff)

Source from the content-addressed store, hash-verified

142 self.same_files.add((sender, size))
143
144 def diff_hook(self, diff: Diff):
145 for hook in self.get_diff_hooks().values():
146 for output in hook(diff=diff):
147 if type(output) == ScanLocation:
148 self.compare(a_path=output, b_path=output.metadata["b_scan_location"])
149 else:
150 self.hits.append(output)
151
152 self.diffs.append(diff)
153
154 def compare(
155 self,

Callers 1

_diff_filesMethod · 0.95

Calls 2

get_diff_hooksMethod · 0.95
compareMethod · 0.95

Tested by

no test coverage detected