MCPcopy Create free account
hub / github.com/JanSmrcka/differ / RenderBinaryFile

Function RenderBinaryFile

internal/ui/diff.go:257–259  ·  view source on GitHub ↗

RenderBinaryFile renders a placeholder for binary files.

(styles Styles, width int)

Source from the content-addressed store, hash-verified

255
256// RenderBinaryFile renders a placeholder for binary files.
257func RenderBinaryFile(styles Styles, width int) string {
258 return styles.DiffHunkHeader.Width(width).Render(" Binary file — cannot display diff")
259}
260
261// --- Split (side-by-side) diff ---
262

Callers 3

RenderDiffFunction · 0.85
RenderSplitDiffFunction · 0.85
TestRenderBinaryFileFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestRenderBinaryFileFunction · 0.68