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

Function highlight_diff

modules/popup/differ.py:12–14  ·  view source on GitHub ↗

Generate the html string with highlighted diff.

(old_lines, new_lines)

Source from the content-addressed store, hash-verified

10
11
12def highlight_diff(old_lines, new_lines):
13 """Generate the html string with highlighted diff."""
14 return ''.join(_highlight_diff(old_lines, new_lines))
15
16
17def _highlight_diff(a, b):

Callers

nothing calls this directly

Calls 1

_highlight_diffFunction · 0.85

Tested by

no test coverage detected