diff

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDiff

func GenerateDiff(beforeContent, afterContent, fileName string) (string, int, int)

GenerateDiff creates a unified diff from two file contents

func GenerateDiffPreview

func GenerateDiffPreview(beforeContent, afterContent string, contextLines int) string

GenerateDiffPreview returns a truncated unified diff showing only changed blocks with the given number of context lines on each side. It is designed to be concise enough for LLM tool responses.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL