package ctxt

import "github.com/pkg/diff/ctxt"

Package ctxt provides routines to reduce the amount of context in an edit script.

Index

Functions

func Size

func Size(e edit.Script, n int) edit.Script

Size returns an edit script preserving only n common elements of context for changes. The returned edit script may alias the input. If n is negative, Size panics.

Source Files

size.go todo.go

Version
v0.0.0-20241224192749-4e6772a4315c (latest)
Published
Dec 24, 2024
Platform
windows/amd64
Imports
1 packages
Last checked
3 hours ago

Tools for package owners.